@@ -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
/**
@@ -478,14 +477,14 @@ is ``app/config/config.yml``:
478
477
# ...
479
478
480
479
framework :
481
- secret : " %secret%"
480
+ secret : ' %secret%'
482
481
router :
483
- resource : " %kernel.root_dir%/config/routing.yml"
482
+ resource : ' %kernel.root_dir%/config/routing.yml'
484
483
# ...
485
484
486
485
twig :
487
- debug : " %kernel.debug%"
488
- strict_variables : " %kernel.debug%"
486
+ debug : ' %kernel.debug%'
487
+ strict_variables : ' %kernel.debug%'
489
488
490
489
# ...
491
490
0 commit comments