Skip to content

Commit

Permalink
Merge pull request #11 from bartvw/fix-factory-for-pre-2_6
Browse files Browse the repository at this point in the history
Pass actual factory reference instead of Definition
  • Loading branch information
tmilos committed Apr 20, 2016
2 parents 75d0811 + 483ed80 commit 5034e0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function configureCredential(ContainerBuilder $container, array $config)

private function configureCredentialStore(ContainerBuilder $container, array $config)
{
$factoryReference = $container->getDefinition('lightsaml.credential.credential_store_factory');
$factoryReference = new Reference('lightsaml.credential.credential_store_factory');
$definition = $container->getDefinition('lightsaml.credential.credential_store');
$this->setFactoryCompatibleWay($definition, $factoryReference, 'buildFromOwnCredentialStore');
}
Expand All @@ -74,7 +74,7 @@ private function configureService(ContainerBuilder $container, array $config)

private function configureServiceCredentialResolver(ContainerBuilder $container, array $config)
{
$factoryReference = $container->getDefinition('lightsaml.service.credential_resolver_factory');
$factoryReference = new Reference('lightsaml.service.credential_resolver_factory');
$definition = $container->getDefinition('lightsaml.service.credential_resolver');
$this->setFactoryCompatibleWay($definition, $factoryReference, 'build');
}
Expand Down

0 comments on commit 5034e0e

Please sign in to comment.