Skip to content

Commit 9bf1ed0

Browse files
committed
minor #10029 Update page_creation.rst : Replace Controller By AbstractController (OlivierToussaint)
This PR was submitted for the master branch but it was merged into the 4.1 branch instead (closes #10029). Discussion ---------- Update page_creation.rst : Replace Controller By AbstractController Remplace Controller By AbstractController <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 6b5a696 Update page_creation.rst
2 parents 2588a91 + 6b5a696 commit 9bf1ed0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

page_creation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ Second, make sure that ``LuckyController`` extends Symfony's base
227227
// src/Controller/LuckyController.php
228228
229229
// ...
230-
+ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
230+
+ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
231231
232232
- class LuckyController
233-
+ class LuckyController extends Controller
233+
+ class LuckyController extends AbstractController
234234
{
235235
// ...
236236
}
@@ -241,7 +241,7 @@ variable so you can use it in Twig::
241241
// src/Controller/LuckyController.php
242242

243243
// ...
244-
class LuckyController extends Controller
244+
class LuckyController extends AbstractController
245245
{
246246
/**
247247
* @Route("/lucky/number")

0 commit comments

Comments
 (0)