Skip to content

Instantly share code, notes, and snippets.

@raphaeldealmeida
Last active December 31, 2015 16:08
Show Gist options
  • Save raphaeldealmeida/8011289 to your computer and use it in GitHub Desktop.
Save raphaeldealmeida/8011289 to your computer and use it in GitHub Desktop.
Module para autenticação Doctrine
<?php
namespace Application;
use Zend\Authentication\AuthenticationService;
class Module
{
public function getServiceConfig()
{
return array(
'factories' => array(
'Zend\Authentication\AuthenticationService' => function($serviceManager) {
return $serviceManager->get('doctrine.authenticationservice.orm_default');
}
)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment