8000 [FrameworkBundle] Fix array controller link in debug:router by fancyweb · Pull Request #40802 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] Fix array controller link in debug:router #40802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

fancyweb
Copy link
Contributor
Q A
Branch? 5.2
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

debug:router is broken when you add a route in the Kernel (see https://symfony.com/doc/current/configuration/micro_kernel_trait.html) because kernel is not a class and triggers a \ReflectionException. The code in the exception handling always expect $controller to be a string.

@fancyweb fancyweb force-pushed the fwb/debug-router-controller-link-array branch from f7e059c to be964bd Compare April 15, 2021 11:20
@chalasr
Copy link
Member
chalasr commented Apr 15, 2021

This probably deserves a test case.

@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit 449c60f into symfony:5.2 Apr 16, 2021
@fancyweb fancyweb deleted the fwb/debug-router-controller-link-array branch April 20, 2021 13:35
@fabpot fabpot mentioned this pull request May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0