8000 minor #10628 RM: Sentence about extending the Request class (andreasl… · symfony/symfony-docs@54a23d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54a23d9

Browse files
committed
minor #10628 RM: Sentence about extending the Request class (andreaslarssen)
This PR was submitted for the 4.1 branch but it was merged into the 3.4 branch instead (closes #10628). Discussion ---------- RM: Sentence about extending the Request class Extending the Request class is not recommended: symfony/symfony#29059 Commits ------- a23feff RM: Sentence about extending the Request class
2 parents b519265 + a23feff commit 54a23d9

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)
0