Commit 03a15052 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Ajout transmission des ACL aux aides de vue de navigation

parent b80e5d6f
......@@ -57,13 +57,10 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
/* @var $services \Zend\ServiceManager\ServiceManager */
$services = $application->getServiceManager();
// /* @var $vhm HelperPluginManager */
// $vhm = $services->get('view_helper_manager');
// /* @var $nvh Navigation */
// $nvh = $vhm->get('navigation');
// /* @var $authorizeService \BjyAuthorize\Service\Authorize */
// $authorizeService = $services->get('BjyAuthorize\Service\Authorize');
// $nvh->setAcl($authorizeService->getAcl())->setRole($authorizeService->getIdentity());
// transmission des ACL aux aides de vue de navigation
$authorizeService = $services->get('BjyAuthorize\Service\Authorize'); /* @var $authorizeService \BjyAuthorize\Service\Authorize */
\Zend\View\Helper\Navigation::setDefaultAcl($authorizeService->getAcl());
\Zend\View\Helper\Navigation::setDefaultRole($authorizeService->getIdentity());
/* @var $options Options\ModuleOptions */
$options = $services->get('unicaen-auth_module_options');
......
Markdown is supported
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