Commit 2b6baf60 authored by alexpott's avatar alexpott

Issue #2421841 by neclimdul, tim.plunkett: Performance bug in...

Issue #2421841 by neclimdul, tim.plunkett: Performance bug in ControllerResolver::getControllerFromDefinition()
parent 03b7423a
......@@ -56,12 +56,12 @@ public function getControllerFromDefinition($controller, $path = '') {
}
if (strpos($controller, ':') === FALSE) {
if (method_exists($controller, '__invoke')) {
return new $controller;
}
elseif (function_exists($controller)) {
if (function_exists($controller)) {
return $controller;
}
elseif (method_exists($controller, '__invoke')) {
return new $controller;
}
}
$callable = $this->createController($controller);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment