Skip to content
Snippets Groups Projects
Unverified Commit 99c4c948 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Pass the configuration to the SimpleSAML\Session class.

parent c90d80ca
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,9 @@ class ModuleControllerResolver extends ControllerResolver implements ArgumentRes
public function setSession(Session $session)
{
$this->container->set(Session::class, $session);
$this->container->register(Session::class)->setSynthetic(true)->setAutowired(true);
$this->container->register(Session::class)
->setSynthetic(true)
->setAutowired(true)
->addMethodCall('setConfiguration', [new Reference(Configuration::class)]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment