Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
03a15052
Commit
03a15052
authored
Mar 22, 2013
by
Bertrand Gauthier
Browse files
Ajout transmission des ACL aux aides de vue de navigation
parent
b80e5d6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Module.php
View file @
03a15052
...
...
@@ -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'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment