Skip to content

Commit

Permalink
feature #4711 [Reference] Add default_locale config description (xela…
Browse files Browse the repository at this point in the history
…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 207f2f0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Configuration
* `http_method_override`_
* `ide`_
* `test`_
* `default_locale`_
* `trusted_proxies`_
* `form`_
* enabled
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 207f2f0

Please sign in to comment.