Permalink
Browse files

Changes in line with DoctrineModule #95

  • Loading branch information...
superdweebie committed Oct 3, 2012
1 parent fbd5e63 commit ee732e2b97ec875436ab91dc9ab446f66e5f66aa
@@ -96,30 +96,6 @@ public function getConfig()
return include __DIR__ . '/../../config/module.config.php';
}
- /**
- * {@inheritDoc}
- */
- public function getControllerPluginConfig()
- {
- return array(
- 'factories' => array(
- 'identity' => new CommonService\Authentication\ControllerPluginFactory('odm_default')
- )
- );
- }
-
- /**
- * {@inheritDoc}
- */
- public function getViewHelperConfig()
- {
- return array(
- 'factories' => array(
- 'identity' => new CommonService\Authentication\ViewHelperFactory('odm_default')
- )
- );
- }
-
/**
* {@inheritDoc}
*/
@@ -131,8 +107,8 @@ public function getServiceConfig()
),
'factories' => array(
'doctrine.authenticationadapter.odm_default' => new CommonService\Authentication\AdapterFactory('odm_default'),
- 'doctrine.authenticationstorage.odm_default' => new CommonService\Authentication\StorageFactory('odm_default'),
- 'doctrine.authenticationservice.odm_default' => new CommonService\Authentication\ServiceFactory('odm_default'),
+ 'doctrine.authenticationstorage.odm_default' => new CommonService\Authentication\StorageFactory('odm_default'),
+ 'doctrine.authenticationservice.odm_default' => new CommonService\Authentication\AuthenticationServiceFactory('odm_default'),
'doctrine.connection.odm_default' => new ODMService\ConnectionFactory('odm_default'),
'doctrine.configuration.odm_default' => new ODMService\ConfigurationFactory('odm_default'),
'doctrine.driver.odm_default' => new CommonService\DriverFactory('odm_default'),
@@ -6,9 +6,9 @@
class AuthenticationServiceFactoryTest extends AbstractTest
{
- public function testAuthenticationStorageFactory(){
+ public function testAuthenticationServiceFactory(){
- $storage = $this->serviceManager->get('doctrine.authenticationservice.odm_default');
- $this->assertInstanceOf('Zend\Authentication\AuthenticationService', $storage);
+ $authenticationService = $this->serviceManager->get('doctrine.authenticationservice.odm_default');
+ $this->assertInstanceOf('Zend\Authentication\AuthenticationService', $authenticationService);
}
}

0 comments on commit ee732e2

Please sign in to comment.