From 0b2aa25520cbba8737f137178f596d53e2dee85a Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Fri, 30 Nov 2018 10:10:43 +0100 Subject: [PATCH] Fix Symfony4-compatibility --- lib/SimpleSAML/Module/ControllerResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Module/ControllerResolver.php b/lib/SimpleSAML/Module/ControllerResolver.php index ba79109d1..25bfa08fd 100644 --- a/lib/SimpleSAML/Module/ControllerResolver.php +++ b/lib/SimpleSAML/Module/ControllerResolver.php @@ -105,7 +105,7 @@ class ControllerResolver extends SymfonyControllerResolver implements ArgumentRe $matcher = new UrlMatcher($this->routes, $ctxt); $this->params = $matcher->match($ctxt->getPathInfo()); list($class, $method) = explode('::', $this->params['_controller']); - $this->container->register($class, $class)->setAutowired(true); + $this->container->register($class, $class)->setAutowired(true)->setPublic(true); $this->container->compile(); return [$this->container->get($class), $method]; } catch (ResourceNotFoundException $e) { -- GitLab