Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Update routing.rst #718

Merged
merged 1 commit into from
Dec 1, 2015
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
10 changes: 10 additions & 0 deletions book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ Notice that ``enabled: true`` is no longer present. It's only required if no
other configuration parameter is provided. The router is automatically enabled
as soon as you add any other configuration to the ``dynamic`` entry.

.. note::

This example uses a controller which is defined as a service. You can also
configure a controller by using a fully qualified class name:
``CmfContentBundle:Content:index``.

For more information on using controllers as a service read cook book
section `How to Define Controllers as Services`_

.. note::

Internally, the routing component maps these configuration options to
Expand Down Expand Up @@ -529,3 +538,4 @@ For more information on the Routing component of Symfony CMF, please refer to:
.. _`Doctrine ORM`: http://www.doctrine-project.org/projects/orm.html
.. _`PHPCR-ODM`: http://www.doctrine-project.org/projects/phpcr-odm.html
.. _`Routing`: http://symfony.com/doc/current/components/routing/introduction.html
.. _`How to Define Controllers as Services`: http://symfony.com/doc/current/cookbook/controller/service.html