Skip to content

Commit dd20bbb

Browse files
committed
minor #5644 Update page_creation.rst (jeromenadaud)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5644). Discussion ---------- Update page_creation.rst | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7 | Fixed tickets | Commits ------- 1c8cfbe Update page_creation.rst
2 parents 6c76b2b + 1c8cfbe commit dd20bbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

book/page_creation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Just add a second method to ``LuckyController``::
104104
// src/AppBundle/Controller/LuckyController.php
105105
// ...
106106

107-
class LuckyController
107+
class LuckyController extends Controller
108108
{
109109
// ...
110110

@@ -137,7 +137,7 @@ You can even shorten this with the handy :class:`Symfony\\Component\\HttpFoundat
137137
// --> don't forget this new use statement
138138
use Symfony\Component\HttpFoundation\JsonResponse;
139139

140-
class LuckyController
140+
class LuckyController extends Controller
141141
{
142142
// ...
143143

@@ -170,7 +170,7 @@ at the end:
170170
// src/AppBundle/Controller/LuckyController.php
171171
// ...
172172
173-
class LuckyController
173+
class LuckyController extends Controller
174174
{
175175
/**
176176
* @Route("/lucky/number/{count}")
@@ -224,7 +224,7 @@ The best part is that you can access this value and use it in your controller::
224224
// src/AppBundle/Controller/LuckyController.php
225225
// ...
226226

227-
class LuckyController
227+
class LuckyController extends Controller
228228
{
229229

230230
/**

0 commit comments

Comments
 (0)