@@ -39,11 +39,10 @@ a method inside of it that will be executed when someone goes to ``/lucky/number
39
39
// src/AppBundle/Controller/LuckyController.php
40
40
namespace AppBundle\Controller;
41
41
42
- use Symfony\Bundle\FrameworkBundle\Controller\Controller;
43
42
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
44
43
use Symfony\Component\HttpFoundation\Response;
45
44
46
- class LuckyController extends Controller
45
+ class LuckyController
47
46
{
48
47
/**
49
48
* @Route("/lucky/number")
@@ -104,7 +103,7 @@ Just add a second method to ``LuckyController``::
104
103
// src/AppBundle/Controller/LuckyController.php
105
104
// ...
106
105
107
- class LuckyController extends Controller
106
+ class LuckyController
108
107
{
109
108
// ...
110
109
@@ -137,7 +136,7 @@ You can even shorten this with the handy :class:`Symfony\\Component\\HttpFoundat
137
136
// --> don't forget this new use statement
138
137
use Symfony\Component\HttpFoundation\JsonResponse;
139
138
140
- class LuckyController extends Controller
139
+ class LuckyController
141
140
{
142
141
// ...
143
142
@@ -170,7 +169,7 @@ at the end:
170
169
// src/AppBundle/Controller/LuckyController.php
171
170
// ...
172
171
173
- class LuckyController extends Controller
172
+ class LuckyController
174
173
{
175
174
/**
176
175
* @Route("/lucky/number/{count}")
@@ -224,7 +223,7 @@ The best part is that you can access this value and use it in your controller::
224
223
// src/AppBundle/Controller/LuckyController.php
225
224
// ...
226
225
227
- class LuckyController extends Controller
226
+ class LuckyController
228
227
{
229
228
230
229
/**
0 commit comments