Commit 2fe7d95f authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Actualisation du skelette d'application!!

parent cc0edc60
......@@ -8,9 +8,14 @@
}
],
"require": {
"unicaen/unicaen-app": "1.2.2",
"unicaen/unicaen-auth": "1.1.0",
"zendframework/zend-developer-tools": "dev-master",
"unicaen/unicaen-code": "1.0"
"unicaen/unicaen-app": "1.2.42",
"unicaen/unicaen-auth": "1.1.8",
},
"require-dev": {
"unicaen/unicaen-code": "1.0.11",
"zendframework/zend-test": ">=2.3",
"phpunit/PHPUnit": ">=3.7",
"zendframework/zend-developer-tools": ">=1.0"
}
}
\ No newline at end of file
......@@ -3,78 +3,80 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c] 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
return array(
'router' => array(
'routes' => array(
'home' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
namespace Application;
return [
'router' => [
'routes' => [
'home' => [
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => [
'route' => '/',
'defaults' => array(
'defaults' => [
'controller' => 'Application\Controller\Index', // <-- change here
'action' => 'index',
),
),
),
],
],
],
// The following is a route to simplify getting started creating
// new controllers and actions without needing to create a new
// module. Simply drop new controllers in, and you can access them
// using the path /application/:controller/:action
'application' => array(
'type' => 'Literal',
'options' => array(
'application' => [
'type' => 'Literal',
'options' => [
'route' => '/application',
'defaults' => array(
'defaults' => [
'__NAMESPACE__' => 'Application\Controller',
'controller' => 'Index',
'action' => 'index',
),
),
],
],
'may_terminate' => true,
'child_routes' => array(
'default' => array(
'child_routes' => [
'default' => [
'type' => 'Segment',
'options' => array(
'route' => '/[:controller[/:action]]',
'constraints' => array(
'options' => [
'route' => '/[:controller[/:action]]',
'constraints' => [
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
),
),
),
),
),
),
),
'service_manager' => array(
'factories' => array(
),
),
'translator' => array(
'locale' => 'fr_FR', // en_US
'translation_file_patterns' => array(
array(
],
'defaults' => [
],
],
],
],
],
],
],
'service_manager' => [
'factories' => [
],
],
'translator' => [
'locale' => 'fr_FR', // en_US
'translation_file_patterns' => [
[
'type' => 'gettext',
'base_dir' => __DIR__ . '/../language',
'pattern' => '%s.mo',
),
),
),
'controllers' => array(
'invokables' => array(
'Application\Controller\Index' => 'Application\Controller\IndexController',
),
),
'view_manager' => array(
'template_path_stack' => array(
],
],
],
'controllers' => [
'invokables' => [
'Application\Controller\Index' => Controller\IndexController::class,
],
],
'view_manager' => [
'template_path_stack' => [
__DIR__ . '/../view',
),
),
);
],
],
];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment