@@ -337,8 +337,8 @@ as soon as you add any other configuration to the ``dynamic`` entry.
337
337
This example uses a controller which is defined as a service. You can also
338
338
configure a controller by using a fully qualified class name:
339
339
``CmfContentBundle:Content:index ``.
340
-
341
- For more information on using controllers as a service read cook book
340
+
341
+ For more information on using controllers as a service read cook book
342
342
section `How to Define Controllers as Services `_
343
343
344
344
.. note ::
@@ -362,9 +362,12 @@ automatically passed to the Controller as the ``contentDocument`` method paramet
362
362
Note that a Route can implement the above mentioned interface but still not
363
363
return any model instance, in which case no associated object will be provided.
364
364
365
- Furthermore, Routes that implement this interface can also have a custom Route
366
- name, instead of the default Symfony core compatible name, and can contain
367
- any characters. This allows you, for example, to set a path as the route name.
365
+ Furthermore, Routes that implement this interface can also provide their own
366
+ name with the ``getRouteKey `` method. For normal Symfony routes, the name is
367
+ only known from their key in the ``RouteCollection `` collection hashmap. In the
368
+ CMF, it is possible to use route documents outside of collections, and thus
369
+ useful to have routes provide their name. The PHPCR routes for example return
370
+ the repository path when this method is called.
368
371
369
372
Redirects
370
373
---------
0 commit comments