Skip to content

Commit 8d16308

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: Update routing.rst [Controller] Errors on namespace value_resolver
2 parents 0b56570 + 9392b88 commit 8d16308

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

controller/value_resolver.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ and adding a priority:
292292
autowire: true
293293
# ...
294294
295-
App\ArgumentResolver\BookingIdValueResolver:
295+
App\ValueResolver\BookingIdValueResolver:
296296
tags:
297297
- { name: controller.argument_value_resolver, priority: 150 }
298298
@@ -310,7 +310,7 @@ and adding a priority:
310310
<defaults autowire="true"/>
311311
<!-- ... -->
312312
313-
<service id="App\ArgumentResolver\BookingIdValueResolver">
313+
<service id="App\ValueResolver\BookingIdValueResolver">
314314
<tag name="controller.argument_value_resolver" priority="150"/>
315315
</service>
316316
</services>
@@ -322,7 +322,7 @@ and adding a priority:
322322
// config/services.php
323323
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
324324
325-
use App\ArgumentResolver\BookingIdValueResolver;
325+
use App\ValueResolver\BookingIdValueResolver;
326326
327327
return static function (ContainerConfigurator $container) {
328328
$services = $configurator->services();

routing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ Use the ``methods`` option to restrict the verbs each route should respond to:
249249
route with a different method from an HTML form, add a hidden field called
250250
``_method`` with the method to use (e.g. ``<input type="hidden" name="_method" value="PUT">``).
251251
If you create your forms with :doc:`Symfony Forms </forms>` this is done
252-
automatically for you.
252+
automatically for you when the :ref:`framework.http_method_override <configuration-framework-http_method_override>`
253+
option is ``true``.
253254

254255
.. _routing-matching-expressions:
255256

0 commit comments

Comments
 (0)