8000 bug #29584 [FrameworkBundle] fix describing routes with no controller… · symfony/symfony@7a34a78 · GitHub
[go: up one dir, main page]

10000
Skip to content

Commit 7a34a78

Browse files
bug #29584 [FrameworkBundle] fix describing routes with no controllers (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] fix describing routes with no controllers | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Spotted by @jpauli during a training. Commits ------- a1c612a [FrameworkBundle] fix describing routes with no controllers
2 parents 7028f84 + a1c612a commit 7a34a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function describeRouteCollection(RouteCollection $routes, array $optio
5656

5757
if ($showControllers) {
5858
$controller = $route->getDefault('_controller');
59-
$row[] = $this->formatCallable($controller);
59+
$row[] = $controller ? $this->formatCallable($controller) : '';
6060
}
6161

6262
$tableRows[] = $row;

0 commit comments

Comments
 (0)
0