From 3e71f643ae59f6ac70100702cabb06dcb413d7d5 Mon Sep 17 00:00:00 2001 From: Marcel Marnitz Date: Thu, 10 May 2018 23:19:35 +0200 Subject: [PATCH] Override store definition as creating aliases leads to service not found errors (closes #22) --- .../DependencyInjection/LightSamlSymfonyBridgeExtension.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/LightSamlSymfonyBridgeExtension.php b/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/LightSamlSymfonyBridgeExtension.php index 98ad4bd..6e8873d 100644 --- a/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/LightSamlSymfonyBridgeExtension.php +++ b/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/LightSamlSymfonyBridgeExtension.php @@ -177,13 +177,13 @@ private function configureParty(ContainerBuilder $container, array $config) private function configureStore(ContainerBuilder $container, array $config) { if (isset($config['store']['request'])) { - $container->setAlias('lightsaml.store.request', $config['store']['request']); + $container->setDefinition('lightsaml.store.request', new ChildDefinition($config['store']['request'])); } if (isset($config['store']['id_state'])) { - $container->setAlias('lightsaml.store.id_state', $config['store']['id_state']); + $container->setDefinition('lightsaml.store.id_state', new ChildDefinition($config['store']['id_state'])); } if (isset($config['store']['sso_state'])) { - $container->setAlias('lightsaml.store.sso_state', $config['store']['sso_state']); + $container->setDefinition('lightsaml.store.sso_state', new ChildDefinition($config['store']['sso_state'])); } }