Skip to content

Syntax fix #2073

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Dec 30, 2012
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