From 99c4c948a69d3e3531c9373355d28131107a86bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Wed, 17 Oct 2018 16:26:52 +0200
Subject: [PATCH] Pass the configuration to the SimpleSAML\Session class.

---
 lib/SimpleSAML/ModuleControllerResolver.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/ModuleControllerResolver.php b/lib/SimpleSAML/ModuleControllerResolver.php
index 28abc93d1..a37ac9340 100644
--- a/lib/SimpleSAML/ModuleControllerResolver.php
+++ b/lib/SimpleSAML/ModuleControllerResolver.php
@@ -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)]);
     }
 }
-- 
GitLab