8000 [FrameworkBundle] Fix array controller link in debug:router · symfony/symfony@be964bd · GitHub
[go: up one dir, main page]

Skip to content

Commit be964bd

Browse files
committed
[FrameworkBundle] Fix array controller link in debug:router
1 parent 255283c commit be964bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/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)
0