Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created November 4, 2012 13:59
Show Gist options
  • Save eminetto/4012041 to your computer and use it in GitHub Desktop.
Save eminetto/4012041 to your computer and use it in GitHub Desktop.
//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