File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Configuration
19
19
* `http_method_override `_
20
20
* `ide `_
21
21
* `test `_
22
+ * `default_locale `_
22
23
* `trusted_proxies `_
23
24
* `form `_
24
25
* enabled
@@ -76,8 +77,8 @@ http_method_override
76
77
This determines whether the ``_method `` request parameter is used as the intended
77
78
HTTP method on POST requests. If enabled, the
78
79
:method: `Request::enableHttpMethodParameterOverride <Symfony\\ Component\\ HttpFoundation\\ Request::enableHttpMethodParameterOverride> `
79
- gets called automatically. It becomes the service container parameter named
80
- ``kernel.http_method_override ``. For more information, see
80
+ method gets called automatically. It becomes the service container parameter
81
+ named ``kernel.http_method_override ``. For more information, see
81
82
:doc: `/cookbook/routing/method_parameters `.
82
83
83
84
ide
@@ -151,6 +152,17 @@ This setting should be present in your ``test`` environment (usually via
151
152
152
153
.. _reference-framework-trusted-proxies :
153
154
155
+ default_locale
156
+ ~~~~~~~~~~~~~~
157
+
158
+ **type **: ``string `` **default **: ``en ``
159
+
160
+ The default locale is used if no ``_locale `` routing parameter has been set. It
161
+ becomes the service container parameter named ``kernel.default_locale `` and it
162
+ is also available with the
163
+ :method: `Request::getDefaultLocale <Symfony\\ Component\\ HttpFoundation\\ Request::getDefaultLocale> `
164
+ method.
165
+
154
166
trusted_proxies
155
167
~~~~~~~~~~~~~~~
156
168
You can’t perform that action at this time.
0 commit comments