[FrameworkBundle] Fix descriptor of routes described as callable array
This commit is contained in:
parent
a2dce3a6c6
commit
c5ee4bedc2
@ -540,7 +540,7 @@ class TextDescriptor extends Descriptor
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (\is_array($controller)) {
|
if (\is_array($controller)) {
|
||||||
$r = new \ReflectionMethod($controller);
|
$r = new \ReflectionMethod($controller[0], $controller[1]);
|
||||||
} elseif ($controller instanceof \Closure) {
|
} elseif ($controller instanceof \Closure) {
|
||||||
$r = new \ReflectionFunction($controller);
|
$r = new \ReflectionFunction($controller);
|
||||||
} elseif (method_exists($controller, '__invoke')) {
|
} elseif (method_exists($controller, '__invoke')) {
|
||||||
|
Reference in New Issue
Block a user