Commit 29acec33 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Utilisation de la syntaxe courte pour les tableaux d'UnicaenAuth

parent 6efa4f5e
...@@ -31,16 +31,16 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se ...@@ -31,16 +31,16 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
*/ */
public function getAutoloaderConfig() public function getAutoloaderConfig()
{ {
return array( return [
'Zend\Loader\ClassMapAutoloader' => array( 'Zend\Loader\ClassMapAutoloader' => [
__DIR__ . '/autoload_classmap.php', __DIR__ . '/autoload_classmap.php',
), ],
'Zend\Loader\StandardAutoloader' => array( 'Zend\Loader\StandardAutoloader' => [
'namespaces' => array( 'namespaces' => [
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
), ],
), ],
); ];
} }
/** /**
...@@ -73,43 +73,43 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se ...@@ -73,43 +73,43 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
if ($options->getCas() && php_sapi_name() !== 'cli') { if ($options->getCas() && php_sapi_name() !== 'cli') {
/* @var $router \Zend\Mvc\Router\Http\TreeRouteStack */ /* @var $router \Zend\Mvc\Router\Http\TreeRouteStack */
$router = $services->get('router'); $router = $services->get('router');
$router->addRoutes(array( $router->addRoutes([
// remplace les routes existantes (cf. config du module) // remplace les routes existantes (cf. config du module)
'zfcuser' => array( 'zfcuser' => [
'type' => 'Literal', 'type' => 'Literal',
'priority' => 1000, 'priority' => 1000,
'options' => array( 'options' => [
'route' => '/auth', 'route' => '/auth',
'defaults' => array( 'defaults' => [
'controller' => 'zfcuser', 'controller' => 'zfcuser',
'action' => 'index', 'action' => 'index',
), ],
), ],
'may_terminate' => true, 'may_terminate' => true,
'child_routes' => array( 'child_routes' => [
'login' => array( 'login' => [
'type' => 'Literal', 'type' => 'Literal',
'options' => array( 'options' => [
'route' => '/connexion', 'route' => '/connexion',
'defaults' => array( 'defaults' => [
'controller' => 'zfcuser', 'controller' => 'zfcuser',
'action' => 'authenticate', // zappe l'action 'login' 'action' => 'authenticate', // zappe l'action 'login'
), ],
), ],
), ],
'logout' => array( 'logout' => [
'type' => 'Literal', 'type' => 'Literal',
'options' => array( 'options' => [
'route' => '/deconnexion', 'route' => '/deconnexion',
'defaults' => array( 'defaults' => [
'controller' => 'zfcuser', 'controller' => 'zfcuser',
'action' => 'logout', 'action' => 'logout',
), ],
), ],
), ],
), ],
) ]
)); ]);
} }
} }
...@@ -120,8 +120,8 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se ...@@ -120,8 +120,8 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
*/ */
public function getViewHelperConfig() public function getViewHelperConfig()
{ {
return array( return [
'factories' => array( 'factories' => [
'userConnection' => 'UnicaenAuth\View\Helper\UserConnectionFactory', 'userConnection' => 'UnicaenAuth\View\Helper\UserConnectionFactory',
'userCurrent' => 'UnicaenAuth\View\Helper\UserCurrentFactory', 'userCurrent' => 'UnicaenAuth\View\Helper\UserCurrentFactory',
'userStatus' => 'UnicaenAuth\View\Helper\UserStatusFactory', 'userStatus' => 'UnicaenAuth\View\Helper\UserStatusFactory',
...@@ -129,11 +129,11 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se ...@@ -129,11 +129,11 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
'userInfo' => 'UnicaenAuth\View\Helper\UserInfoFactory', 'userInfo' => 'UnicaenAuth\View\Helper\UserInfoFactory',
'userProfileSelect' => 'UnicaenAuth\View\Helper\UserProfileSelectFactory', 'userProfileSelect' => 'UnicaenAuth\View\Helper\UserProfileSelectFactory',
'userProfileSelectRadioItem' => 'UnicaenAuth\View\Helper\UserProfileSelectRadioItemFactory', 'userProfileSelectRadioItem' => 'UnicaenAuth\View\Helper\UserProfileSelectRadioItemFactory',
), ],
'invokables' => array( 'invokables' => [
'appConnection' => 'UnicaenAuth\View\Helper\AppConnection', 'appConnection' => 'UnicaenAuth\View\Helper\AppConnection',
), ],
); ];
} }
/** /**
...@@ -143,8 +143,8 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se ...@@ -143,8 +143,8 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
*/ */
public function getServiceConfig() public function getServiceConfig()
{ {
return array( return [
'factories' => array( 'factories' => [
// verrue pour forcer le label de l'identifiant qqsoit l'options 'auth_identity_fields' // verrue pour forcer le label de l'identifiant qqsoit l'options 'auth_identity_fields'
'zfcuser_login_form' => function($sm) { 'zfcuser_login_form' => function($sm) {
$options = $sm->get('zfcuser_module_options'); $options = $sm->get('zfcuser_module_options');
...@@ -153,7 +153,7 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se ...@@ -153,7 +153,7 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
$form->get('identity')->setLabel("Username"); $form->get('identity')->setLabel("Username");
return $form; return $form;
}, },
), ],
); ];
} }
} }
\ No newline at end of file
<?php <?php
// Generated by ZF2's ./bin/classmap_generator.php // Generated by ZF2's ./bin/classmap_generator.php
return array( return [
'UnicaenAuth\Service\User' => __DIR__ . '/src/UnicaenAuth/Service/User.php', 'UnicaenAuth\Service\User' => __DIR__ . '/src/UnicaenAuth/Service/User.php',
'UnicaenAuth\Authentication\Storage\Ldap' => __DIR__ . '/src/UnicaenAuth/Authentication/Storage/Ldap.php', 'UnicaenAuth\Authentication\Storage\Ldap' => __DIR__ . '/src/UnicaenAuth/Authentication/Storage/Ldap.php',
'UnicaenAuth\Authentication\Storage\Db' => __DIR__ . '/src/UnicaenAuth/Authentication/Storage/Db.php', 'UnicaenAuth\Authentication\Storage\Db' => __DIR__ . '/src/UnicaenAuth/Authentication/Storage/Db.php',
...@@ -21,4 +21,4 @@ return array( ...@@ -21,4 +21,4 @@ return array(
'UnicaenAuth\View\Helper\UserConnection' => __DIR__ . '/src/UnicaenAuth/View/Helper/UserConnection.php', 'UnicaenAuth\View\Helper\UserConnection' => __DIR__ . '/src/UnicaenAuth/View/Helper/UserConnection.php',
'UnicaenAuth\View\Helper\UserAbstract' => __DIR__ . '/src/UnicaenAuth/View/Helper/UserAbstract.php', 'UnicaenAuth\View\Helper\UserAbstract' => __DIR__ . '/src/UnicaenAuth/View/Helper/UserAbstract.php',
'UnicaenAuth\Module' => __DIR__ . '/Module.php', 'UnicaenAuth\Module' => __DIR__ . '/Module.php',
); ];
\ No newline at end of file \ No newline at end of file
<?php <?php
$settings = array( $settings = [
/** /**
* Fournisseurs d'identité. * Fournisseurs d'identité.
*/ */
'identity_providers' => array( 'identity_providers' => [
300 => 'UnicaenAuth\Provider\Identity\Basic', // en 1er 300 => 'UnicaenAuth\Provider\Identity\Basic', // en 1er
200 => 'UnicaenAuth\Provider\Identity\Db', // en 2e 200 => 'UnicaenAuth\Provider\Identity\Db', // en 2e
100 => 'UnicaenAuth\Provider\Identity\Ldap', // en 3e 100 => 'UnicaenAuth\Provider\Identity\Ldap', // en 3e
), ],
); ];
$zfcuserSettings = array( $zfcuserSettings = [
/** /**
* Enable registration * Enable registration
* Allows users to register through the website. * Allows users to register through the website.
...@@ -24,7 +24,7 @@ $zfcuserSettings = array( ...@@ -24,7 +24,7 @@ $zfcuserSettings = array(
* Default value: array containing 'email' * Default value: array containing 'email'
* Accepted values: array containing one or more of: email, username * Accepted values: array containing one or more of: email, username
*/ */
'auth_identity_fields' => array('username', 'email'), 'auth_identity_fields' => ['username', 'email'],
/** /**
* Login Redirect Route * Login Redirect Route
* Upon successful login the user will be redirected to the entered route * Upon successful login the user will be redirected to the entered route
...@@ -59,19 +59,19 @@ $zfcuserSettings = array( ...@@ -59,19 +59,19 @@ $zfcuserSettings = array(
* Default value: array containing 'ZfcUser\Authentication\Adapter\Db' with priority 100 * Default value: array containing 'ZfcUser\Authentication\Adapter\Db' with priority 100
* Accepted values: array containing services that implement 'ZfcUser\Authentication\Adapter\ChainableAdapter' * Accepted values: array containing services that implement 'ZfcUser\Authentication\Adapter\ChainableAdapter'
*/ */
'auth_adapters' => array( 'auth_adapters' => [
300 => 'UnicaenAuth\Authentication\Adapter\Ldap', // notifié en 1er 300 => 'UnicaenAuth\Authentication\Adapter\Ldap', // notifié en 1er
200 => 'UnicaenAuth\Authentication\Adapter\Db', // ensuite (si échec d'authentification Ldap) 200 => 'UnicaenAuth\Authentication\Adapter\Db', // ensuite (si échec d'authentification Ldap)
100 => 'UnicaenAuth\Authentication\Adapter\Cas', // ensuite (si échec d'authentification Db) 100 => 'UnicaenAuth\Authentication\Adapter\Cas', // ensuite (si échec d'authentification Db)
), ],
// telling ZfcUser to use our own class // telling ZfcUser to use our own class
'user_entity_class' => 'UnicaenAuth\Entity\Db\User', 'user_entity_class' => 'UnicaenAuth\Entity\Db\User',
// telling ZfcUserDoctrineORM to skip the entities it defines // telling ZfcUserDoctrineORM to skip the entities it defines
'enable_default_entities' => false, 'enable_default_entities' => false,
); ];
$bjyauthorize = array( $bjyauthorize = [
/* this module uses a meta-role that inherits from any roles that should /* this module uses a meta-role that inherits from any roles that should
* be applied to the active user. the identity provider tells us which * be applied to the active user. the identity provider tells us which
* roles the "identity role" should inherit from. * roles the "identity role" should inherit from.
...@@ -85,33 +85,33 @@ $bjyauthorize = array( ...@@ -85,33 +85,33 @@ $bjyauthorize = array(
* to specify roles in a config file and one to load roles using a * to specify roles in a config file and one to load roles using a
* Zend\Db adapter. * Zend\Db adapter.
*/ */
'role_providers' => array( 'role_providers' => [
/** /**
* 2 rôles doivent systématiquement exister dans les ACL : * 2 rôles doivent systématiquement exister dans les ACL :
* - le rôle par défaut 'guest', c'est le rôle de tout utilisateur non authentifié. * - le rôle par défaut 'guest', c'est le rôle de tout utilisateur non authentifié.
* - le rôle 'user', c'est le rôle de tout utilisateur authentifié. * - le rôle 'user', c'est le rôle de tout utilisateur authentifié.
*/ */
'UnicaenAuth\Provider\Role\Config' => array( 'UnicaenAuth\Provider\Role\Config' => [
'guest' => array('name' => "Non authentifié(e)", 'selectable' => false, 'children' => array( 'guest' => ['name' => "Non authentifié(e)", 'selectable' => false, 'children' => [
'user' => array('name' => "Authentifié(e)", 'selectable' => false) 'user' => ['name' => "Authentifié(e)", 'selectable' => false]
)), ]],
), ],
/** /**
* Fournit les rôles issus de la base de données éventuelle de l'appli. * Fournit les rôles issus de la base de données éventuelle de l'appli.
* NB: si le rôle par défaut 'guest' est fourni ici, il ne sera pas ajouté en double dans les ACL. * NB: si le rôle par défaut 'guest' est fourni ici, il ne sera pas ajouté en double dans les ACL.
* NB: si la connexion à la base échoue, ce n'est pas bloquant! * NB: si la connexion à la base échoue, ce n'est pas bloquant!
*/ */
'UnicaenAuth\Provider\Role\DbRole' => array( 'UnicaenAuth\Provider\Role\DbRole' => [
'object_manager' => 'doctrine.entitymanager.orm_default', 'object_manager' => 'doctrine.entitymanager.orm_default',
'role_entity_class' => 'UnicaenAuth\Entity\Db\Role', 'role_entity_class' => 'UnicaenAuth\Entity\Db\Role',
), ],
/** /**
* Fournit le rôle correspondant à l'identifiant de connexion de l'utilisateur. * Fournit le rôle correspondant à l'identifiant de connexion de l'utilisateur.
* Cela est utile lorsque l'on veut gérer les habilitations d'un utilisateur unique * Cela est utile lorsque l'on veut gérer les habilitations d'un utilisateur unique
* sur des ressources. * sur des ressources.
*/ */
'UnicaenAuth\Provider\Role\Username' => array(), 'UnicaenAuth\Provider\Role\Username' => [],
), ],
// strategy service name for the strategy listener to be used when permission-related errors are detected // strategy service name for the strategy listener to be used when permission-related errors are detected
// 'unauthorized_strategy' => 'BjyAuthorize\View\RedirectionStrategy', // 'unauthorized_strategy' => 'BjyAuthorize\View\RedirectionStrategy',
...@@ -119,72 +119,72 @@ $bjyauthorize = array( ...@@ -119,72 +119,72 @@ $bjyauthorize = array(
/* Currently, only controller and route guards exist /* Currently, only controller and route guards exist
*/ */
'guards' => array( 'guards' => [
/* If this guard is specified here (i.e. it is enabled), it will block /* If this guard is specified here (i.e. it is enabled), it will block
* access to all controllers and actions unless they are specified here. * access to all controllers and actions unless they are specified here.
* You may omit the 'action' index to allow access to the entire controller * You may omit the 'action' index to allow access to the entire controller
*/ */
'BjyAuthorize\Guard\Controller' => array( 'BjyAuthorize\Guard\Controller' => [
array('controller' => 'index', 'action' => 'index', 'roles' => array()), ['controller' => 'index', 'action' => 'index', 'roles' => []],
array('controller' => 'zfcuser', 'roles' => array()), ['controller' => 'zfcuser', 'roles' => []],
array('controller' => 'Application\Controller\Index', 'roles' => array()), ['controller' => 'Application\Controller\Index', 'roles' => []],
array('controller' => 'UnicaenApp\Controller\Application', 'action' => 'etab', 'roles' => array()), ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'etab', 'roles' => []],
array('controller' => 'UnicaenApp\Controller\Application', 'action' => 'apropos', 'roles' => array()), ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'apropos', 'roles' => []],
array('controller' => 'UnicaenApp\Controller\Application', 'action' => 'contact', 'roles' => array()), ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'contact', 'roles' => []],
array('controller' => 'UnicaenApp\Controller\Application', 'action' => 'plan', 'roles' => array()), ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'plan', 'roles' => []],
array('controller' => 'UnicaenApp\Controller\Application', 'action' => 'mentions-legales', 'roles' => array()), ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'mentions-legales', 'roles' => []],
array('controller' => 'UnicaenApp\Controller\Application', 'action' => 'informatique-et-libertes', 'roles' => array()), ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'informatique-et-libertes', 'roles' => []],
array('controller' => 'UnicaenApp\Controller\Application', 'action' => 'refresh-session', 'roles' => array()), ['controller' => 'UnicaenApp\Controller\Application', 'action' => 'refresh-session', 'roles' => []],
array('controller' => 'UnicaenAuth\Controller\Utilisateur', 'action' => 'selectionner-profil', 'roles' => array()), ['controller' => 'UnicaenAuth\Controller\Utilisateur', 'action' => 'selectionner-profil', 'roles' => []],
), ],
), ],
); ];
return array( return [
'zfcuser' => $zfcuserSettings, 'zfcuser' => $zfcuserSettings,
'bjyauthorize' => $bjyauthorize, 'bjyauthorize' => $bjyauthorize,
'unicaen-auth' => $settings, 'unicaen-auth' => $settings,
'doctrine' => array( 'doctrine' => [
'driver' => array( 'driver' => [
// overriding zfc-user-doctrine-orm's config // overriding zfc-user-doctrine-orm's config
'zfcuser_entity' => array( 'zfcuser_entity' => [
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver', 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'paths' => array( 'paths' => [
__DIR__ . '/../src/UnicaenAuth/Entity/Db' __DIR__ . '/../src/UnicaenAuth/Entity/Db'
) ]
), ],
'orm_auth_driver' => array( 'orm_auth_driver' => [
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver', 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'cache' => 'array', 'cache' => 'array',
'paths' => array( 'paths' => [
__DIR__ . '/../src/UnicaenAuth/Entity/Db' __DIR__ . '/../src/UnicaenAuth/Entity/Db'
) ]
), ],
'orm_default' => array( 'orm_default' => [
'class' => 'Doctrine\ORM\Mapping\Driver\DriverChain', 'class' => 'Doctrine\ORM\Mapping\Driver\DriverChain',
'drivers' => array( 'drivers' => [
'UnicaenAuth\Entity\Db' => 'zfcuser_entity', 'UnicaenAuth\Entity\Db' => 'zfcuser_entity',
'UnicaenAuth\Entity\Db' => 'orm_auth_driver' 'UnicaenAuth\Entity\Db' => 'orm_auth_driver'
) ]
), ],
), ],
), ],
'service_manager' => array( 'service_manager' => [
'aliases' => array( 'aliases' => [
'Zend\Authentication\AuthenticationService' => 'zfcuser_auth_service', 'Zend\Authentication\AuthenticationService' => 'zfcuser_auth_service',
), ],
'invokables' => array( 'invokables' => [
'unicaen-auth_user_service' => 'UnicaenAuth\Service\User', 'unicaen-auth_user_service' => 'UnicaenAuth\Service\User',
'UnicaenAuth\Authentication\Storage\Db' => 'UnicaenAuth\Authentication\Storage\Db', 'UnicaenAuth\Authentication\Storage\Db' => 'UnicaenAuth\Authentication\Storage\Db',
'UnicaenAuth\Authentication\Storage\Ldap' => 'UnicaenAuth\Authentication\Storage\Ldap', 'UnicaenAuth\Authentication\Storage\Ldap' => 'UnicaenAuth\Authentication\Storage\Ldap',
'UnicaenAuth\View\RedirectionStrategy' => 'UnicaenAuth\View\RedirectionStrategy', 'UnicaenAuth\View\RedirectionStrategy' => 'UnicaenAuth\View\RedirectionStrategy',
'authUserContext' => 'UnicaenAuth\Service\UserContext' 'authUserContext' => 'UnicaenAuth\Service\UserContext'
), ],
'abstract_factories' => array( 'abstract_factories' => [
'UnicaenAuth\Authentication\Adapter\AbstractFactory', 'UnicaenAuth\Authentication\Adapter\AbstractFactory',
), ],
'factories' => array( 'factories' => [
'unicaen-auth_module_options' => 'UnicaenAuth\Options\ModuleOptionsFactory', 'unicaen-auth_module_options' => 'UnicaenAuth\Options\ModuleOptionsFactory',
'zfcuser_auth_service' => 'UnicaenAuth\Authentication\AuthenticationServiceFactory', 'zfcuser_auth_service' => 'UnicaenAuth\Authentication\AuthenticationServiceFactory',
'UnicaenAuth\Authentication\Storage\Chain' => 'UnicaenAuth\Authentication\Storage\ChainServiceFactory', 'UnicaenAuth\Authentication\Storage\Chain' => 'UnicaenAuth\Authentication\Storage\ChainServiceFactory',
...@@ -195,127 +195,127 @@ return array( ...@@ -195,127 +195,127 @@ return array(
'UnicaenAuth\Provider\Role\Config' => 'UnicaenAuth\Provider\Role\ConfigServiceFactory', 'UnicaenAuth\Provider\Role\Config' => 'UnicaenAuth\Provider\Role\ConfigServiceFactory',
'UnicaenAuth\Provider\Role\DbRole' => 'UnicaenAuth\Provider\Role\DbRoleServiceFactory', 'UnicaenAuth\Provider\Role\DbRole' => 'UnicaenAuth\Provider\Role\DbRoleServiceFactory',
'UnicaenAuth\Provider\Role\Username' => 'UnicaenAuth\Provider\Role\UsernameServiceFactory', 'UnicaenAuth\Provider\Role\Username' => 'UnicaenAuth\Provider\Role\UsernameServiceFactory',
), ],
'initializers' => array( 'initializers' => [
'UnicaenAuth\Service\UserAwareInitializer', 'UnicaenAuth\Service\UserAwareInitializer',
), ],
), ],
'controllers' => array( 'controllers' => [
'invokables' => array( 'invokables' => [
'UnicaenAuth\Controller\Utilisateur' => 'UnicaenAuth\Controller\UtilisateurController', 'UnicaenAuth\Controller\Utilisateur' => 'UnicaenAuth\Controller\UtilisateurController',
), ],
), ],
'view_manager' => array( 'view_manager' => [
'template_map' => array( 'template_map' => [
'error/403' => __DIR__ . '/../view/error/403.phtml', 'error/403' => __DIR__ . '/../view/error/403.phtml',
), ],
'template_path_stack' => array( 'template_path_stack' => [
'unicaen-auth' => __DIR__ . '/../view', 'unicaen-auth' => __DIR__ . '/../view',
), ],
), ],
'translator' => array( 'translator' => [
'translation_file_patterns' => array( 'translation_file_patterns' => [
array( [
'type' => 'gettext', 'type' => 'gettext',
'base_dir' => __DIR__ . '/../language', 'base_dir' => __DIR__ . '/../language',
'pattern' => '%s.mo', 'pattern' => '%s.mo',
), ],
), ],
), ],
'router' => array( 'router' => [
'routes' => array( 'routes' => [
'zfcuser' => array( 'zfcuser' => [
'type' => 'Literal', 'type' => 'Literal',
'priority' => 1000, 'priority' => 1000,
'options' => array( 'options' => [
'route' => '/auth', 'route' => '/auth',
'defaults' => array( 'defaults' => [
'controller' => 'zfcuser', 'controller' => 'zfcuser',
'action' => 'index', 'action' => 'index',
), ],
), ],
'may_terminate' => true, 'may_terminate' => true,
'child_routes' => array( 'child_routes' => [
'login' => array( 'login' => [
'type' => 'Literal', 'type' => 'Literal',
'options' => array( 'options' => [
'route' => '/connexion', 'route' => '/connexion',
'defaults' => array( 'defaults' => [
'controller' => 'zfcuser', 'controller' => 'zfcuser',
'action' => 'login', 'action' => 'login',
), ],
), ],
), ],
'logout' => array( 'logout' => [
'type' => 'Literal', 'type' => 'Literal',
'options' => array( 'options' => [
'route' => '/deconnexion', 'route' => '/deconnexion',
'defaults' => array( 'defaults' => [
'controller' => 'zfcuser', 'controller' => 'zfcuser',
'action' => 'logout', 'action' => 'logout',
), ],
), ],
), ],
'register' => array( 'register' => [
'type' => 'Literal', 'type' => 'Literal',
'options' => array( 'options' => [
'route' => '/creation-compte', 'route' => '/creation-compte',
'defaults' => array( 'defaults' => [
'controller' => 'zfcuser', 'controller' => 'zfcuser',
'action' => 'register', 'action' => 'register',
), ],
), ],
), ],
), ],
), ],
'utilisateur' => array( 'utilisateur' => [
'type' => 'Literal', 'type' => 'Literal',
'options' => array( 'options' => [
'route' => '/utilisateur', 'route' => '/utilisateur',
'defaults' => array( 'defaults' => [
'__NAMESPACE__' => 'UnicaenAuth\Controller', '__NAMESPACE__' => 'UnicaenAuth\Controller',
'controller' => 'Utilisateur',