We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6119b67 commit c98babfCopy full SHA for c98babf
routing.rst
@@ -22,7 +22,17 @@ Creating Routes
22
23
A *route* is a map from a URL path to a controller. Suppose you want one route that
24
matches ``/blog`` exactly and another more dynamic route that can match *any* URL
25
-like ``/blog/my-post`` or ``/blog/all-about-symfony``:
+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:
36
37
.. configuration-block::
38
0 commit comments