-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
#[Route] attribute on invocable controller cannot be found #2176
Comments
I got the same issue with the class level php attributes. PHPStorm version 2023.2 |
I can confirm that if I move the annotation to the method level ( |
I have the same problem. I upgraded a small project from an old symfony version (4.4) to 7.0 and converted the annotations to attributes. That add precision, this was not an issue when using annotations on the class level on invokable controllers. This only happens when using attributes on the class level. In the official Symfony documentation, the route attribute is placed on class level in invokable controllers : https://symfony.com/doc/current/controller/service.html#invokable-controllers |
#2176 support route names on class level with __invoke method
For the most part, this plugin works great. But I noticed in a project that a select few routes kept showing up as missing according to the plugin:
The only thing that all these missing routes have in common, is that they are specified (as attributes) on a class level rather than a method level, e.g.:
PHPStorm version 2023.1 and also 2023.2 EAP
Plugin version 2022.1.250
The text was updated successfully, but these errors were encountered: