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

Commit 0ddf225

Browse files
committed
Merge pull request #718 from mediamonks-robert/patch-2
Update routing.rst
2 parents c63e03d + 2dee439 commit 0ddf225

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

book/routing.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,15 @@ Notice that ``enabled: true`` is no longer present. It's only required if no
332332
other configuration parameter is provided. The router is automatically enabled
333333
as soon as you add any other configuration to the ``dynamic`` entry.
334334

335+
.. note::
336+
337+
This example uses a controller which is defined as a service. You can also
338+
configure a controller by using a fully qualified class name:
339+
``CmfContentBundle:Content:index``.
340+
341+
For more information on using controllers as a service read cook book
342+
section `How to Define Controllers as Services`_
343+
335344
.. note::
336345

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

0 commit comments

Comments
 (0)