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
332
332
other configuration parameter is provided. The router is automatically enabled
333
333
as soon as you add any other configuration to the ``dynamic `` entry.
334
334
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
+
335
344
.. note ::
336
345
337
346
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:
529
538
.. _`Doctrine ORM` : http://www.doctrine-project.org/projects/orm.html
530
539
.. _`PHPCR-ODM` : http://www.doctrine-project.org/projects/phpcr-odm.html
531
540
.. _`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