Skip to content

Commit

Permalink
Override store definition as creating aliases leads to service not fo…
Browse files Browse the repository at this point in the history
…und errors (closes lightSAML#22)
  • Loading branch information
frostieDE committed May 10, 2018
1 parent 9b64b2e commit 3e71f64
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']));
}
}

Expand Down

0 comments on commit 3e71f64

Please sign in to comment.