File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -93,22 +93,13 @@ Annotation Routes
93
93
-----------------
94
94
95
95
Instead of defining your route in YAML, Symfony also allows you to use *annotation *
96
- routes. First , install the annotations package:
96
+ routes. To do this , install the annotations package:
97
97
98
98
.. code-block :: terminal
99
99
100
100
$ composer require annotations
101
101
102
- Then, in ``config/routes.yaml ``, remove the route you just created and uncomment
103
- the annotation route import at the bottom:
104
-
105
- .. code-block :: yaml
106
-
107
- controllers :
108
- resource : ../src/Controller/
109
- type : annotation
110
-
111
- After this one-time setup, you can now add your route directly *above * the controller:
102
+ You can now add your route directly *above * the controller:
112
103
113
104
.. code-block :: diff
114
105
You can’t perform that action at this time.
0 commit comments