Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created November 7, 2012 10:53
Show Gist options
  • Save eminetto/4030845 to your computer and use it in GitHub Desktop.
Save eminetto/4030845 to your computer and use it in GitHub Desktop.
//no Module.php
/**
* Retorna a configuração do service manager do módulo
* @return array
*/
public function getServiceConfig()
{
return array(
'factories' => array(
'Admin\Service\Auth' => function($sm) {
$dbAdapter = $sm->get('DbAdapter');
return new Service\Auth($dbAdapter);
},
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment