Skip to content

Commit c4ab230

Browse files
committed
minor #8726 removing need for annotation route import change (weaverryan)
This PR was merged into the 4.0 branch. Discussion ---------- removing need for annotation route import change See symfony/recipes#260 - this is not needed anymore 🎆 Commits ------- c2f8345 removing need for annotation route import change
2 parents a1901ff + c2f8345 commit c4ab230

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

page_creation.rst

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,13 @@ Annotation Routes
9393
-----------------
9494

9595
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:
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

0 commit comments

Comments
 (0)