Skip to content

Commit 17387a0

Browse files
authored
Added namespace for example controller
1 parent b16f8eb commit 17387a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

page_creation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ Make sure that ``LuckyController`` extends Symfony's base
216216
Now, use the handy ``render()`` function to render a template. Pass it a ``number``
217217
variable so you can use it in Twig::
218218

219+
<?php
219220
// src/Controller/LuckyController.php
221+
namespace App\Controller;
220222

221223
// ...
222224
class LuckyController extends AbstractController

0 commit comments

Comments
 (0)