8000 minor #10993 Use "index" instead of "indexAction" (superbull) · symfony/symfony-docs@6cd835a · GitHub
[go: up one dir, main page]

Skip to content

Commit 6cd835a

Browse files
committed
minor #10993 Use "index" instead of "indexAction" (superbull)
This PR was merged into the 4.2 branch. Discussion ---------- Use "index" instead of "indexAction" Wrong controller action name. <!-- 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 ------- 68d67a5 Use "index" instead of "indexAction"
2 parents f5832b2 + 68d67a5 commit 6cd835a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create_framework/separation_of_concerns.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Don't forget to update the ``example.com/src/app.php`` file accordingly::
138138

139139
$routes->add('leap_year', new Routing\Route('/is_leap_year/{year}', [
140140
'year' => null,
141-
'_controller' => 'Calendar\Controller\LeapYearController::indexAction',
141+
'_controller' => 'Calendar\Controller\LeapYearController::index',
142142
]));
143143

144144
To sum up, here is the new file layout:

0 commit comments

Comments
 (0)
0