We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ReflectionMethod
1 parent 9344c26 commit f32d633Copy full SHA for f32d633
src/Symfony/Component/HttpKernel/Event/ControllerEvent.php
@@ -70,7 +70,7 @@ public function setController(callable $controller, ?array $attributes = null):
70
if (\is_array($controller) && method_exists(...$controller)) {
71
$this->controllerReflector = new \ReflectionMethod(...$controller);
72
} elseif (\is_string($controller) && str_contains($controller, '::')) {
73
- $this->controllerReflector = new \ReflectionMethod($controller);
+ $this->controllerReflector = new \ReflectionMethod(...explode('::', $controller, 2));
74
} else {
75
$this->controllerReflector = new \ReflectionFunction($controller(...));
76
}
0 commit comments