Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add keys for authentication factories #132

Merged
merged 3 commits into from

2 participants

@superdweebie
Collaborator

See DoctrineModule #95

@Ocramius Ocramius referenced this pull request in doctrine/DoctrineModule
Merged

Add authentication storage factory #95

@Ocramius
Owner

@superdweebie I'm merging this as it is highly needed. Are you able to port back the tests for this one from doctrine/DoctrineMongoODMModule#41?

@Ocramius Ocramius merged commit ddc0d34 into from
@superdweebie
Collaborator

@Ocramius I'll port back the tests, hopefully today. I don't have ORM set up on my dev system, so I'll rely on travis to tell me when they are right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/DoctrineORMModule/Module.php
View
6 src/DoctrineORMModule/Module.php
@@ -22,6 +22,7 @@
use DoctrineModule\Service\DriverFactory;
use DoctrineModule\Service\EventManagerFactory;
+use DoctrineModule\Service\Authentication;
use DoctrineORMModule\Service\ConfigurationFactory as ORMConfigurationFactory;
use DoctrineORMModule\Service\EntityManagerFactory;
use DoctrineORMModule\Service\EntityResolverFactory;
@@ -141,6 +142,11 @@ public function getServiceConfig()
'Doctrine\ORM\EntityManager' => 'doctrine.entitymanager.orm_default',
),
'factories' => array(
+
+ 'doctrine.authenticationadapter.orm_default' => new Authentication\AdapterFactory('orm_default'),
+ 'doctrine.authenticationstorage.orm_default' => new Authentication\StorageFactory('orm_default'),
+ 'doctrine.authenticationservice.orm_default' => new Authentication\AuthenticationServiceFactory('orm_default'),
+
'doctrine.connection.orm_default' => new DBALConnectionFactory('orm_default'),
'doctrine.configuration.orm_default' => new ORMConfigurationFactory('orm_default'),
'doctrine.entitymanager.orm_default' => new EntityManagerFactory('orm_default'),
Something went wrong with that request. Please try again.