Skip to content

Commit c98babf

Browse files
Reword
1 parent 6119b67 commit c98babf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

routing.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,17 @@ Creating Routes
2222

2323
A *route* is a map from a URL path to a controller. Suppose you want one route that
2424
matches ``/blog`` exactly and another more dynamic route that can match *any* URL
25-
like ``/blog/my-post`` or ``/blog/all-about-symfony``:
25+
like ``/blog/my-post`` or ``/blog/all-about-symfony``.
26+
27+
Routes can be configured in YAML, XML and PHP. All formats provide the same
28+
features and performance, so choose the one you prefer. If you choose PHP
29+
annotations, run this command once in your app to add support for them:
30+
31+
.. code-block:: terminal
32+
33+
$ composer require annotations
34+
35+
Now you can configure the routes:
2636

2737
.. configuration-block::
2838

0 commit comments

Comments
 (0)