Commit 812dbfd
committed
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-definition1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
341 | | - | |
| 342 | + | |
0 commit comments