From be964bdfa6928a930795fbf1809ca1bb190fc714 Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Tue, 13 Apr 2021 18:18:44 +0200 Subject: [PATCH] [FrameworkBundle] Fix array controller link in debug:router --- .../FrameworkBundle/Console/Descriptor/TextDescriptor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php index 33566f7f3eb74..adc524ce6202b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php @@ -554,6 +554,10 @@ private function formatControllerLink($controller, string $anchorText, callable $r = new \ReflectionFunction($controller); } } catch (\ReflectionException $e) { + if (\is_array($controller)) { + $controller = implode('::', $controller); + } + $id = $controller; $method = '__invoke';