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
minor symfony#6734 Add little caution to add service id for @route annotation (DHager, WouterJ)
This PR was merged into the 2.7 branch.
Discussion
----------
Add little caution to add service id for @route annotation
Finishes symfony#6258
Original PR description:
> I just ran into this problem and it took me a while. Without the `@Route(service="myid")` annotation, the controller was *always* being instantiated without any arguments, completely ignoring my service-definition.
> Not sure how far back/forward this applies to other versions.
Commits
-------
93bb21c Merge caution with annotations tip
ac6b008 Add warning about a pitfall where the controller seems to be instantiated without using the service-definition
0 commit comments