Skip to content

Commit

Permalink
Pass actual factory reference instead of Definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvw committed Apr 13, 2016
1 parent 75d0811 commit 483ed80
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 483ed80

Please sign in to comment.