From f35cddb708b0e826f7b0ff7ef0e965007c2eaa5e Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sun, 10 Dec 2017 13:12:51 +0100 Subject: [PATCH] Use the Route annotation from Symfony core --- src/Controller/Admin/BlogController.php | 2 +- src/Controller/BlogController.php | 2 +- src/Controller/SecurityController.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/Admin/BlogController.php b/src/Controller/Admin/BlogController.php index 75d3a09d7..78bdc12bf 100644 --- a/src/Controller/Admin/BlogController.php +++ b/src/Controller/Admin/BlogController.php @@ -16,12 +16,12 @@ use App\Repository\PostRepository; use App\Utils\Slugger; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Routing\Annotation\Route; /** * Controller used to manage blog contents in the backend. diff --git a/src/Controller/BlogController.php b/src/Controller/BlogController.php index e42466c44..bd111d932 100644 --- a/src/Controller/BlogController.php +++ b/src/Controller/BlogController.php @@ -19,13 +19,13 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\GenericEvent; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Routing\Annotation\Route; /** * Controller used to manage blog contents in the public part of the site. diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index c6f58f8f4..ea1fafed1 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -11,9 +11,9 @@ namespace App\Controller; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; /**