@@ -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
/**
@@ -489,14 +488,14 @@ is ``app/config/config.yml``:
489
488
490
489
# ...
491
490
framework :
492
- secret : " %secret%"
491
+ secret : ' %secret%'
493
492
router :
494
- resource : " %kernel.root_dir%/config/routing.yml"
493
+ resource : ' %kernel.root_dir%/config/routing.yml'
495
494
# ...
496
495
497
496
twig :
498
- debug : " %kernel.debug%"
499
- strict_variables : " %kernel.debug%"
497
+ debug : ' %kernel.debug%'
498
+ strict_variables : ' %kernel.debug%'
500
499
501
500
# ...
502
501
0 commit comments