Skip to content

Commit a23feff

Browse files
andreaslarssenjaviereguiluz
authored andcommitted
RM: Sentence about extending the Request class
Extending the Request class is not recommended: symfony/symfony#29059
1 parent b519265 commit a23feff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/http_kernel.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,7 @@ of arguments that should be passed when executing that callable.
359359

360360
b) If the argument in the controller is type-hinted with Symfony's
361361
:class:`Symfony\\Component\\HttpFoundation\\Request` object, the
362-
``Request`` is passed in as the value. If you have a custom ``Request``
363-
class, it will be injected as long as you extend the Symfony ``Request``.
362+
``Request`` is passed in as the value.
364363

365364
c) If the function or method argument is `variadic`_ and the ``Request``
366365
``attributes`` bag contains an array for that argument, they will all be

0 commit comments

Comments
 (0)