This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,15 @@ Notice that ``enabled: true`` is no longer present. It's only required if no
332332other configuration parameter is provided. The router is automatically enabled
333333as 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
You can’t perform that action at this time.
0 commit comments