We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6ff8cb8 commit631aac6Copy full SHA for 631aac6
components/routing/introduction.rst
@@ -234,11 +234,11 @@ If you're using the ``YamlFileLoader``, then route definitions look like this:
234
# routes.yml
235
route1:
236
pattern:/foo
237
-defaults:{controller: 'MyController::fooAction' }
+defaults:{_controller: 'MyController::fooAction' }
238
239
route2:
240
pattern:/foo/bar
241
-defaults:{controller: 'MyController::foobarAction' }
+defaults:{_controller: 'MyController::foobarAction' }
242
243
To load this file, you can use the following code. This assumes that your
244
``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
334
are saved in the ``cache_dir``. This means your script must have write
335
permissions for that location.
336
337
-.. _Packagist:https://packagist.org/packages/symfony/routing
+.. _Packagist:https://packagist.org/packages/symfony/routing