Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

method name is 'index' not 'indexAction'#10046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
dcsmith926 wants to merge1 commit intosymfony:4.1fromdcsmith926:patch-1
Closed
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletionscreate_framework/http_kernel_controller_resolver.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,7 @@ Update the route definition accordingly::

$routes->add('leap_year', new Routing\Route('/is_leap_year/{year}', array(
'year' => null,
'_controller' => array(new LeapYearController(), 'indexAction'),
'_controller' => array(new LeapYearController(), 'index'),
)));

The move is pretty straightforward and makes a lot of sense as soon as you
Expand DownExpand Up@@ -64,7 +64,7 @@ two colons and a method name as a valid callback, like 'class::method'::

$routes->add('leap_year', new Routing\Route('/is_leap_year/{year}', array(
'year' => null,
'_controller' => 'LeapYearController::indexAction',
'_controller' => 'LeapYearController::index',
)));

To make this code work, modify the framework code to use the controller
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp