From 483ed8088d701a4dd085fc15001c08bf12ae414a Mon Sep 17 00:00:00 2001 From: Bart van Wissen Date: Wed, 13 Apr 2016 11:44:59 +0200 Subject: [PATCH] Pass actual factory reference instead of Definition --- .../DependencyInjection/LightSamlSymfonyBridgeExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/LightSamlSymfonyBridgeExtension.php b/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/LightSamlSymfonyBridgeExtension.php index e14f472..776fe7d 100644 --- a/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/LightSamlSymfonyBridgeExtension.php +++ b/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/LightSamlSymfonyBridgeExtension.php @@ -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'); } @@ -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'); }