Loading config/autoload/unicaen-faq.global.php +28 −16 Changes for config/autoload/unicaen-faq.global.php: 28 added lines, 16 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ use UnicaenFaq\Entity\Db\Faq; return array( return [ 'unicaen-faq' => [ // Nom du gestionnaire d'entité concerné. // Par défaut: 'orm_default'. Loading @@ -15,18 +15,30 @@ return array( // Customisation de la navigation. // Ex: masquer le menu, modifier sa position, changer son label, associer une ressource ACL. // 'navigation' => [ // 'default' => [ // 'home' => [ // 'pages' => [ // 'faq' => [ // 'visible' => true, // 'order' => -1000, // 'label' => 'FAQ', // 'resource' => PrivilegeController::getResourceId('UnicaenFaq\Controller\Index', 'index'), // ], // ], // ], // ], // ], ); No newline at end of file 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'faq' => [ 'order' => 200, 'label' => "Aide", 'pages' => [ 'faq' => [ 'label' => 'Questions fréquentes', 'route' => 'faq', ], 'contact' => [ 'label' => 'Contact / assistance', 'route' => 'contact', ], 'apropos' => [ 'label' => 'À propos...', 'route' => 'apropos', ], ], ], ], ], ], ], ]; No newline at end of file module/Application/Module.php +9 −0 Changes for module/Application/Module.php: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4,12 +4,15 @@ namespace Application; use Application\Event\UserAuthenticatedEventListener; use Application\Event\UserRoleSelectedEventListener; use Application\View\Helper\Navigation\MenuSecondaire; use Zend\Config\Factory as ConfigFactory; use Zend\Console\Adapter\AdapterInterface as Console; use Zend\Http\Request as HttpRequest; use Zend\Mvc\ModuleRouteListener; use Zend\Mvc\MvcEvent; use Zend\Stdlib\Glob; use Zend\View\Helper\Navigation; use Zend\View\HelperPluginManager; class Module { Loading Loading @@ -57,6 +60,12 @@ class Module /** @var UserRoleSelectedEventListener $listener */ $listener = $sm->get('UserRoleSelectedEventListener'); $listener->attach($eventManager); /* @var $vhm HelperPluginManager */ $vhm = $sm->get('ViewHelperManager'); /* @var $nvh Navigation */ $nvh = $vhm->get('Zend\View\Helper\Navigation'); $nvh->getPluginManager()->setInvokableClass('menuSecondaire', MenuSecondaire::class); } public function getConfig() Loading module/Application/config/module.config.php +0 −1 Changes for module/Application/config/module.config.php: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -274,7 +274,6 @@ return array( 'view_helpers' => array( 'invokables' => array( 'filterPanel' => 'Application\View\Helper\FilterPanel\FilterPanelHelper', 'selectsFilterPanel' => FiltersPanelHelper::class, 'filtersPanel' => FiltersPanelHelper::class, 'escapeText' => EscapeTextHelper::class, ), Loading module/Application/config/others/admin.config.php +1 −2 Changes for module/Application/config/others/admin.config.php: 1 added line, 2 removed lines. Original line number Diff line number Diff line Loading @@ -235,10 +235,9 @@ return [ 'home' => [ 'pages' => [ 'admin' => [ 'order' => -90, 'order' => 100, 'label' => 'Administration', 'route' => 'admin', 'icon' => 'glyphicon glyphicon-cog', 'resource' => PrivilegeController::getResourceId('Application\Controller\Admin', 'index'), 'pages' => [ 'test-envoi-mail' => [ Loading module/Application/config/others/doctorant.config.php +0 −4 Changes for module/Application/config/others/doctorant.config.php: 0 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -62,8 +62,6 @@ return [ 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'these' => [ 'pages' => [ 'modifier-persopass' => [ 'visible' => false, Loading @@ -71,8 +69,6 @@ return [ 'route' => 'doctorant/modifier-persopass', 'resource' => PrivilegeController::getResourceId('Application\Controller\Doctorant', 'modifier-persopass'), ], ] ] ], ], ], Loading Loading
config/autoload/unicaen-faq.global.php +28 −16 Changes for config/autoload/unicaen-faq.global.php: 28 added lines, 16 removed lines. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ use UnicaenFaq\Entity\Db\Faq; return array( return [ 'unicaen-faq' => [ // Nom du gestionnaire d'entité concerné. // Par défaut: 'orm_default'. Loading @@ -15,18 +15,30 @@ return array( // Customisation de la navigation. // Ex: masquer le menu, modifier sa position, changer son label, associer une ressource ACL. // 'navigation' => [ // 'default' => [ // 'home' => [ // 'pages' => [ // 'faq' => [ // 'visible' => true, // 'order' => -1000, // 'label' => 'FAQ', // 'resource' => PrivilegeController::getResourceId('UnicaenFaq\Controller\Index', 'index'), // ], // ], // ], // ], // ], ); No newline at end of file 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'faq' => [ 'order' => 200, 'label' => "Aide", 'pages' => [ 'faq' => [ 'label' => 'Questions fréquentes', 'route' => 'faq', ], 'contact' => [ 'label' => 'Contact / assistance', 'route' => 'contact', ], 'apropos' => [ 'label' => 'À propos...', 'route' => 'apropos', ], ], ], ], ], ], ], ]; No newline at end of file
module/Application/Module.php +9 −0 Changes for module/Application/Module.php: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4,12 +4,15 @@ namespace Application; use Application\Event\UserAuthenticatedEventListener; use Application\Event\UserRoleSelectedEventListener; use Application\View\Helper\Navigation\MenuSecondaire; use Zend\Config\Factory as ConfigFactory; use Zend\Console\Adapter\AdapterInterface as Console; use Zend\Http\Request as HttpRequest; use Zend\Mvc\ModuleRouteListener; use Zend\Mvc\MvcEvent; use Zend\Stdlib\Glob; use Zend\View\Helper\Navigation; use Zend\View\HelperPluginManager; class Module { Loading Loading @@ -57,6 +60,12 @@ class Module /** @var UserRoleSelectedEventListener $listener */ $listener = $sm->get('UserRoleSelectedEventListener'); $listener->attach($eventManager); /* @var $vhm HelperPluginManager */ $vhm = $sm->get('ViewHelperManager'); /* @var $nvh Navigation */ $nvh = $vhm->get('Zend\View\Helper\Navigation'); $nvh->getPluginManager()->setInvokableClass('menuSecondaire', MenuSecondaire::class); } public function getConfig() Loading
module/Application/config/module.config.php +0 −1 Changes for module/Application/config/module.config.php: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -274,7 +274,6 @@ return array( 'view_helpers' => array( 'invokables' => array( 'filterPanel' => 'Application\View\Helper\FilterPanel\FilterPanelHelper', 'selectsFilterPanel' => FiltersPanelHelper::class, 'filtersPanel' => FiltersPanelHelper::class, 'escapeText' => EscapeTextHelper::class, ), Loading
module/Application/config/others/admin.config.php +1 −2 Changes for module/Application/config/others/admin.config.php: 1 added line, 2 removed lines. Original line number Diff line number Diff line Loading @@ -235,10 +235,9 @@ return [ 'home' => [ 'pages' => [ 'admin' => [ 'order' => -90, 'order' => 100, 'label' => 'Administration', 'route' => 'admin', 'icon' => 'glyphicon glyphicon-cog', 'resource' => PrivilegeController::getResourceId('Application\Controller\Admin', 'index'), 'pages' => [ 'test-envoi-mail' => [ Loading
module/Application/config/others/doctorant.config.php +0 −4 Changes for module/Application/config/others/doctorant.config.php: 0 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -62,8 +62,6 @@ return [ 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'these' => [ 'pages' => [ 'modifier-persopass' => [ 'visible' => false, Loading @@ -71,8 +69,6 @@ return [ 'route' => 'doctorant/modifier-persopass', 'resource' => PrivilegeController::getResourceId('Application\Controller\Doctorant', 'modifier-persopass'), ], ] ] ], ], ], Loading