From bf7c49ecc22a92a1711fd7d5b173bec70e86acf5 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 3 Oct 2014 16:53:14 -0400 Subject: [PATCH 1/2] Removing Controller::getRequest() deprecation note --- src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php b/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php index b3c7f42c2ce27..d3ef0c56993d7 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php @@ -265,10 +265,6 @@ public function createFormBuilder($data = null, array $options = array()) * Shortcut to return the request service. * * @return Request - * - * @deprecated Deprecated since version 2.4, to be removed in 3.0. Ask - * Symfony to inject the Request object into your controller - * method instead by type hinting it in the method's signature. */ public function getRequest() { From 532ca840aa2fba5a2b610d6d698094eeda8b6e85 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 3 Oct 2014 16:58:23 -0400 Subject: [PATCH 2/2] Removing 3.0 UPGRADE note --- UPGRADE-3.0.md | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/UPGRADE-3.0.md b/UPGRADE-3.0.md index 6f320717abdf4..860d70e1b1e13 100644 --- a/UPGRADE-3.0.md +++ b/UPGRADE-3.0.md @@ -274,41 +274,6 @@ UPGRADE FROM 2.x to 3.0 ### FrameworkBundle - * The `getRequest` method of the base `Controller` class has been deprecated - since Symfony 2.4 and must be therefore removed in 3.0. The only reliable - way to get the `Request` object is to inject it in the action method. - - Before: - - ``` - namespace Acme\FooBundle\Controller; - - class DemoController - { - public function showAction() - { - $request = $this->getRequest(); - // ... - } - } - ``` - - After: - - ``` - namespace Acme\FooBundle\Controller; - - use Symfony\Component\HttpFoundation\Request; - - class DemoController - { - public function showAction(Request $request) - { - // ... - } - } - ``` - * The `request` service was removed. You must inject the `request_stack` service instead. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy