Skip to content

Don't use AbstractController in 3.4 branch #11165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions routing/conditions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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\AbstractController;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;

class DefaultController extends AbstractController
class DefaultController extends Controller
{
/**
* @Route(
Expand All @@ -27,7 +27,7 @@ define arbitrary matching logic, use the ``conditions`` routing option:
* condition="context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'"
* )
*
* expressions can also include config parameters
* expressions can also include config parameters
* condition: "request.headers.get('User-Agent') matches '%app.allowed_browsers%'"
*/
public function contact()
Expand Down
4 changes: 2 additions & 2 deletions web_link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;

class BlogController extends AbstractController
class BlogController extends Controller
{
public function index(Request $request)
{
Expand Down