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

Commit a999710

Browse files
committed
Merge pull request #340 from WouterJ/routing_alias_class
[WCM] Reflected RoutingBundle attribute change
2 parents ceaf416 + 1e1e6b3 commit a999710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/routing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ order of precedence):
248248

249249
* Explicit: The ``Route`` document itself can explicitly declare the target
250250
Controller if one is returned from ``getDefault('_controller')``.
251-
* By alias: The ``Route`` document returns a value from ``getDefault('type')``,
251+
* By type The ``Route`` document returns a value from ``getDefault('type')``,
252252
which is then matched against the provided configuration from config.yml
253253
* By class: Requires the ``Route`` document to implement ``RouteObjectInterface``
254254
and return an object for ``getContent()``. The returned class type is
@@ -302,7 +302,7 @@ Here's an example of how to configure the above mentioned options:
302302
cmf_content.controller::indexAction
303303
</controllers-by-class>
304304
305-
<templates-by-class alias="Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent"
305+
<templates-by-class class"Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent"
306306
>
307307
CmfContentBundle:StaticContent:index.html.twig
308308
</templates-by-class>

0 commit comments

Comments
 (0)