Skip to content

Commit 11c5471

Browse files
committed
[FrameworkBundle] Fix array controller link in debug:router
1 parent abee67b commit 11c5471

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Console/Descriptor/TextDescriptor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@ private function formatControllerLink($controller, string $anchorText, callable
554554
$r = new \ReflectionFunction($controller);
555555
}
556556
} catch (\ReflectionException $e) {
557+
if (\is_array($controller)) {
558+
$controller = implode('::', $controller);
559+
}
560+
557561
$id = $controller;
558562
$method = '__invoke';
559563

0 commit comments

Comments
 (0)