Skip to content

Commit a70075e

Browse files
committed
minor symfony#7564 Removed tip that was meant for the 2.x versions (iltar)
This PR was merged into the 3.2 branch. Discussion ---------- Removed tip that was meant for the 2.x versions `getRequest()` was removed from the Controller class back in 3.0 already. I could not find a reference on this page to `getRequest` either way so I think it's safe to remove this tip completely. Commits ------- 11f259d Removed tip that was meant for the 2.x versions
2 parents aa0a7aa + 11f259d commit a70075e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

controller/service.rst

-6
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,6 @@ controller:
336336
337337
return new StreamedResponse($callback);
338338
339-
.. tip::
340-
341-
``getRequest()`` has been deprecated. Instead, have an argument to your
342-
controller action method called ``Request $request``. The order of the
343-
parameters is not important, but the typehint must be provided.
344-
345339
.. _`Controller class source code`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php
346340
.. _`base Controller class`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php
347341
.. _`FrameworkExtraBundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/routing.html#controller-as-service

0 commit comments

Comments
 (0)