Skip to content
Merged
Changes from all 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
6 changes: 3 additions & 3 deletions components/routing/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ If you're using the ``YamlFileLoader``, then route definitions look like this:
# routes.yml
route1:
pattern: /foo
defaults: { controller: 'MyController::fooAction' }
defaults: { _controller: 'MyController::fooAction' }

route2:
pattern: /foo/bar
defaults: { controller: 'MyController::foobarAction' }
defaults: { _controller: 'MyController::foobarAction' }

To load this file, you can use the following code. This assumes that your
``routes.yml`` file is in the same directory as the below code::
Expand Down Expand Up @@ -334,4 +334,4 @@ automatically in the background if you want to use it. A basic example of the
are saved in the ``cache_dir``. This means your script must have write
permissions for that location.

.. _Packagist: https://packagist.org/packages/symfony/routing
.. _Packagist: https://packagist.org/packages/symfony/routing