From b6ab4fae3781d76437fcca325a8d3dc1cd6f4e7d Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Sat, 16 Mar 2019 09:09:13 +0100 Subject: [PATCH] promote AbstractController in 4.2 branch --- http_cache/validation.rst | 2 +- routing/conditions.rst | 4 ++-- web_link.rst | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/http_cache/validation.rst b/http_cache/validation.rst index f2882d70b13..07035518dcf 100644 --- a/http_cache/validation.rst +++ b/http_cache/validation.rst @@ -62,7 +62,7 @@ To see a simple implementation, generate the ETag as the md5 of the content:: // src/Controller/DefaultController.php namespace App\Controller; - use Symfony\Bundle\FrameworkBundle\Controller\Controller; + use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; class DefaultController extends AbstractController diff --git a/routing/conditions.rst b/routing/conditions.rst index b67d09ac92f..0c442e116e1 100644 --- a/routing/conditions.rst +++ b/routing/conditions.rst @@ -15,10 +15,10 @@ define arbitrary matching logic, use the ``conditions`` routing option: // src/Controller/DefaultController.php namespace App\Controller; - use Symfony\Bundle\FrameworkBundle\Controller\Controller; + use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; - class DefaultController extends Controller + class DefaultController extends AbstractController { /** * @Route( diff --git a/web_link.rst b/web_link.rst index 40643dda9c8..f4f8a2941ea 100644 --- a/web_link.rst +++ b/web_link.rst @@ -153,10 +153,10 @@ You can also add links to the HTTP response directly from controllers and servic use Fig\Link\GenericLinkProvider; use Fig\Link\Link; - use Symfony\Bundle\FrameworkBundle\Controller\Controller; + use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; - class BlogController extends Controller + class BlogController extends AbstractController { public function index(Request $request) {