Skip to content

Commit b1701e2

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
namespace App\Controller;
44

55
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
77
use Symfony\Component\HttpFoundation\Response;
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
namespace App\Controller;
44

55
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
77
use Symfony\Component\HttpFoundation\Response;
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)