You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of Symfony 3.3, it is possible to use autowiring for services, using the class names of your service as the id of the service. This means that in a routing.yml the class name of a controller can be used to use that controller as a service.
PHPStorm correctly navigates from such a _controller definition in routing.yml to the actual action method without a problem, but it seems the fr.adrienbrault.idea.symfony2plugin.config.yaml.inspection.EventMethodCallInspection inspection cannot detect the action method is already present.
The auto fix on ALT+ENTER also provides the possibility to Create Method, but once you do that, it creates a method that is already present, and PHPStorm complains about the duplicate method.
The text was updated successfully, but these errors were encountered:
As of Symfony 3.3, it is possible to use autowiring for services, using the class names of your service as the id of the service. This means that in a
routing.yml
the class name of a controller can be used to use that controller as a service.PHPStorm correctly navigates from such a
_controller
definition inrouting.yml
to the actual action method without a problem, but it seems thefr.adrienbrault.idea.symfony2plugin.config.yaml.inspection.EventMethodCallInspection
inspection cannot detect the action method is already present.The auto fix on
ALT+ENTER
also provides the possibility toCreate Method
, but once you do that, it creates a method that is already present, and PHPStorm complains about the duplicate method.The text was updated successfully, but these errors were encountered: