hi,

i'm using zfcuser in my project and i want to attach to logout. i try the
code below. but it doesn't work. Could you help me. 
Thanks.

My "module.php"

/public function onBootstrap(EventManager\Event $e) {
        $sm = $e->getApplication()->getServiceManager();

        $authorize = $sm->get('BjyAuthorizeServiceAuthorize');
        $acl = $authorize->getAcl();
        $role = $authorize->getIdentity();
        \Zend\View\Helper\Navigation::setDefaultAcl($acl);
        \Zend\View\Helper\Navigation::setDefaultRole($role);

        $eventManager = $e->getApplication()->getEventManager();
        $sharedEventManager = $eventManager->getSharedManager(); //
Theshared event manager
        
$sharedEventManager->attach('ZfcUser\Controller\UserController', "logout",
function($e) {
$sessionManager = new \Zend\Session\SessionManager();
$sessionManager->destroy();
});
................../



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/eventmanger-attach-problem-with-zfcuser-logout-tp4662411.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to