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 b90336b commit 35c288cCopy full SHA for 35c288c
translation/locale.rst
@@ -64,6 +64,28 @@ by the routing system using the special ``_locale`` parameter:
64
65
.. configuration-block::
66
67
+ .. code-block:: php-annotations
68
+
69
+ // src/AppBundle/Controller/ContactController.php
70
+ namespace AppBundle\Controller;
71
72
+ // ...
73
+ class ContactController extends AbstractController
74
+ {
75
+ /**
76
+ * @Route(
77
+ * "/{_locale}/contact",
78
+ * name="contact",
79
+ * requirements={
80
+ * "_locale": "en|fr|de",
81
+ * }
82
+ * )
83
+ */
84
+ public function contact()
85
86
+ }
87
88
89
.. code-block:: yaml
90
91
# app/config/routing.yml
0 commit comments