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

Commit631aac6

Browse files
author
Drak
committed
Syntax fix
1 parent6ff8cb8 commit631aac6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎components/routing/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ If you're using the ``YamlFileLoader``, then route definitions look like this:
234234
# routes.yml
235235
route1:
236236
pattern:/foo
237-
defaults:{controller: 'MyController::fooAction' }
237+
defaults:{_controller: 'MyController::fooAction' }
238238
239239
route2:
240240
pattern:/foo/bar
241-
defaults:{controller: 'MyController::foobarAction' }
241+
defaults:{_controller: 'MyController::foobarAction' }
242242
243243
To load this file, you can use the following code. This assumes that your
244244
``routes.yml`` file is in the same directory as the below code::
@@ -334,4 +334,4 @@ automatically in the background if you want to use it. A basic example of the
334334
are saved in the ``cache_dir``. This means your script must have write
335335
permissions for that location.
336336

337-
.. _Packagist:https://packagist.org/packages/symfony/routing
337+
.. _Packagist:https://packagist.org/packages/symfony/routing

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp