Skip to content

Commit f35cddb

Browse files
committed
Use the Route annotation from Symfony core
1 parent 5259ad7 commit f35cddb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Controller/Admin/BlogController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
use App\Repository\PostRepository;
1717
use App\Utils\Slugger;
1818
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
19-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
2019
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
2120
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
2221
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
2322
use Symfony\Component\HttpFoundation\Request;
2423
use Symfony\Component\HttpFoundation\Response;
24+
use Symfony\Component\Routing\Annotation\Route;
2525

2626
/**
2727
* Controller used to manage blog contents in the backend.

src/Controller/BlogController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
2020
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
2121
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
22-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
2322
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
2423
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
2524
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
2625
use Symfony\Component\EventDispatcher\GenericEvent;
2726
use Symfony\Component\HttpFoundation\Request;
2827
use Symfony\Component\HttpFoundation\Response;
28+
use Symfony\Component\Routing\Annotation\Route;
2929

3030
/**
3131
* Controller used to manage blog contents in the public part of the site.

src/Controller/SecurityController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace App\Controller;
1313

14-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
1514
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1615
use Symfony\Component\HttpFoundation\Response;
16+
use Symfony\Component\Routing\Annotation\Route;
1717
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
1818

1919
/**

0 commit comments

Comments
 (0)