-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DX] Improve bad controller class error #11304
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
Comments
👍 What about adding the name of the route that introduced the problem?
|
👍 also great idea with the route-name. |
👍 |
#10788 Adds some better error message when a controller can't be called. I can update that PR with some more info if you like? |
@pierredup Yea, I really what you're fixing with your PR (I was going to open an issue on this, but your PR beat me)! This issue is for a slightly different message and it already has its own PR (#11314). So, I think we're good for now, but I do also want your PR merged. Cheers! |
…vara) This PR was merged into the 2.6-dev branch. Discussion ---------- [FrameworkBundle] Improved controller class error | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #11304 | License | MIT | Doc PR | Commits ------- da41eb1 [FrameworkBundle] improved controller name parse error message
Suppose you have this route:
But, no
Course2Controller
exists (you didn't create it yet, typo in its namespace, etc). The current error looks like this:The
FooBundle:Course2
is a bit confusing, because I don't recognize that from anywhere (I typedFooBundle:Course2:index
). I'd like to improve this error, perhaps:The text was updated successfully, but these errors were encountered: