Permalink
Browse files

feature #4711 [Reference] Add default_locale config description (xela…

…ris)

This PR was merged into the 2.3 branch.

Discussion
----------

[Reference] Add default_locale config description

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | all
| Fixed tickets |

Commits
-------

7ae3489 [Reference] Add default_locale config description
  • Loading branch information...
weaverryan committed Jan 3, 2015
2 parents 1b0fe77 + 7ae3489 commit 207f2f065e10a29172095c6b6f88a2d8fa071223
Showing with 14 additions and 2 deletions.
  1. +14 −2 reference/configuration/framework.rst
@@ -19,6 +19,7 @@ Configuration
* `http_method_override`_
* `ide`_
* `test`_
* `default_locale`_
* `trusted_proxies`_
* `form`_
* enabled
@@ -76,8 +77,8 @@ http_method_override
This determines whether the ``_method`` request parameter is used as the intended
HTTP method on POST requests. If enabled, the
:method:`Request::enableHttpMethodParameterOverride <Symfony\\Component\\HttpFoundation\\Request::enableHttpMethodParameterOverride>`
gets called automatically. It becomes the service container parameter named
``kernel.http_method_override``. For more information, see
method gets called automatically. It becomes the service container parameter
named ``kernel.http_method_override``. For more information, see
:doc:`/cookbook/routing/method_parameters`.
ide
@@ -151,6 +152,17 @@ This setting should be present in your ``test`` environment (usually via
.. _reference-framework-trusted-proxies:
default_locale
~~~~~~~~~~~~~~
**type**: ``string`` **default**: ``en``
The default locale is used if no ``_locale`` routing parameter has been set. It
becomes the service container parameter named ``kernel.default_locale`` and it
is also available with the
:method:`Request::getDefaultLocale <Symfony\\Component\\HttpFoundation\\Request::getDefaultLocale>`
method.
trusted_proxies
~~~~~~~~~~~~~~~

0 comments on commit 207f2f0

Please sign in to comment.