Skip to content

Commit 647fd97

Browse files
committed
[#2355] Updating note about _method activation for 2.3
1 parent 67cc5d1 commit 647fd97

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cookbook/routing/method_parameters.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ Faking the Method with _method
7676

7777
.. note::
7878

79-
The ``_method`` functionality shown here is disabled by default in Symfony 2.2.
80-
To enable it, you must call :method:`Request::enableHttpMethodParameterOverride <Symfony\\Component\\HttpFoundation\\Request::enableHttpMethodParameterOverride>`
81-
before you handle the request (e.g. in your front controller).
79+
The ``_method`` functionality shown here is disabled by default in Symfony 2.2
80+
and enabled by default in Symfony 2.3. To control it in Symfony 2.2, you
81+
must call :method:`Request::enableHttpMethodParameterOverride <Symfony\\Component\\HttpFoundation\\Request::enableHttpMethodParameterOverride>`
82+
before you handle the request (e.g. in your front controller). In Symfony
83+
2.3, use the :ref:`configuration-framework-http_method_override` option.
8284

8385
Unfortunately, life isn't quite this simple, since most browsers do not
8486
support sending PUT and DELETE requests. Fortunately Symfony2 provides you

reference/configuration/framework.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ it's used for generating the CSRF tokens, but it could be used in any other
5252
context where having a unique string is useful. It becomes the service container
5353
parameter named ``kernel.secret``.
5454

55+
.. _configuration-framework-http_method_override:
56+
5557
http_method_override
5658
~~~~~~~~~~~~~~~~~~~~
5759

0 commit comments

Comments
 (0)