Skip to content
Snippets Groups Projects
Unverified Commit 0b2aa255 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Fix Symfony4-compatibility

parent b2a3792c
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ class ControllerResolver extends SymfonyControllerResolver implements ArgumentRe ...@@ -105,7 +105,7 @@ class ControllerResolver extends SymfonyControllerResolver implements ArgumentRe
$matcher = new UrlMatcher($this->routes, $ctxt); $matcher = new UrlMatcher($this->routes, $ctxt);
$this->params = $matcher->match($ctxt->getPathInfo()); $this->params = $matcher->match($ctxt->getPathInfo());
list($class, $method) = explode('::', $this->params['_controller']); 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(); $this->container->compile();
return [$this->container->get($class), $method]; return [$this->container->get($class), $method];
} catch (ResourceNotFoundException $e) { } catch (ResourceNotFoundException $e) {
......
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