Created
November 4, 2012 13:59
-
-
Save eminetto/4012041 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ou adicionar no array do module.config.php (ou outro config) | |
'service_manager' => array( | |
'factories' => array( | |
'Session' => function($sm) { | |
return new Zend\Session\Container('ZF2napratica'); | |
}, | |
'Admin\Service\Auth' => function($sm) { | |
$dbAdapter = $sm->get('DbAdapter'); | |
return new Admin\Service\Auth($dbAdapter); | |
}, | |
) | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment