Skip to content

Commit f5aa030

Browse files
committed
Extending from AbstractController in controller skeletons
1 parent a302c11 commit f5aa030

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Resources/skeleton/controller/Controller.php.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace App\Controller;
44

5-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
5+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
76
use Symfony\Component\HttpFoundation\Response;
7+
use Symfony\Component\Routing\Annotation\Route;
88

9-
class {{ controller_class_name }} extends Controller
9+
class {{ controller_class_name }} extends AbstractController
1010
{
1111
/**
1212
* @Route("{{ route_path }}", name="{{ route_name }}")

src/Resources/skeleton/controller/ControllerWithTwig.php.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace App\Controller;
44

5-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
5+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
76
use Symfony\Component\HttpFoundation\Response;
7+
use Symfony\Component\Routing\Annotation\Route;
88

9-
class {{ controller_class_name }} extends Controller
9+
class {{ controller_class_name }} extends AbstractController
1010
{
1111
/**
1212
* @Route("{{ route_path }}", name="{{ route_name }}")

0 commit comments

Comments
 (0)