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
9393-----------------
9494
9595Instead 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:
9797
9898.. code-block :: terminal
9999
100100 $ composer require annotations
101101
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:
112103
113104.. code-block :: diff
114105
You can’t perform that action at this time.
0 commit comments