Skip to content

Commit 44d787d

Browse files
committed
minor #8924 Install annotations on the top of routing (weaverryan)
This PR was merged into the 4.0 branch. Discussion ---------- Install annotations on the top of routing Reported by a user somewhere on an old recipe PR :). We didn't show it here originally, because if you go through the "Getting Started" in order, you will install it in "Page creation". But, each chapter needs to also stand on its own. Commits ------- 43428c4 adding install details about annotations in the routing chapter
2 parents 55a4254 + 43428c4 commit 44d787d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

routing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ the change is simple.
2020
Creating Routes
2121
---------------
2222

23+
First, install the annotations package:
24+
25+
.. code-block:: terminal
26+
27+
$ composer require annotations
28+
2329
A *route* is a map from a URL path to a controller. Suppose you want one route that
2430
matches ``/blog`` exactly and another more dynamic route that can match *any* URL
2531
like ``/blog/my-post`` or ``/blog/all-about-symfony``:

0 commit comments

Comments
 (0)