8000
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 b34d97e commit 89ffeb1Copy full SHA for 89ffeb1
translation/locale.rst
@@ -64,6 +64,27 @@ A better policy is to include the locale in the URL using the
64
65
.. configuration-block::
66
67
+ .. code-block:: php-annotations
68
+
69
+ // src/Controller/ContactController.php
70
+ namespace App\Controller;
71
72
+ // ...
73
+ class ContactController extends AbstractController
74
+ {
75
+ /**
76
+ * @Route(
77
+ * "/{_locale}/contact",
78
+ * requirements={
79
+ * "_locale": "en|fr|de",
80
+ * }
81
+ * )
82
+ */
83
+ public function contact()
84
85
+ }
86
87
88
.. code-block:: yaml
89
90
# config/routes.yaml
0 commit comments