@@ -121,31 +121,31 @@ content and returns it by the method ``getRouteContent()``. (See
121
121
The possible enhancements that take place, if configured, are (in order of
122
122
precedence):
123
123
124
- # (Explicit controller): If there is a ``_controller `` set in
125
- ``getRouteDefaults() ``, no enhancer will overwrite the controller.
126
- ``_template `` will still be inserted if its not already set;
127
- # Controller by type: requires the route document to return a 'type' value in
128
- ``getRouteDefaults() ``. **priority: 60 **;
129
- # Controller by class: requires the route document to be an instance of
130
- ``RouteObjectInterface `` and to return an object for ``getRouteContent() ``.
131
- The content document is checked for being ``instanceof `` the class names in
132
- the map and if matched that controller is used. Instanceof is used instead of
133
- direct comparison to work with proxy classes and other extending classes.
134
- **priority: 50 **;
135
- # Template by class: requires the route document to be an instance of
136
- ``RouteObjectInterface `` and to return an object for ``getRouteContent() ``.
137
- The content document is checked for being ``instanceof `` the class names in
138
- the map and if matched that template will be set as ``'_template' ``.
139
- **priority: 40 ** for the template, generic controller is set at
140
- **priority: 30 **;
141
- # If a ``_template `` is in the ``$defaults `` but no controller was determined
142
- so far (neither set on the route nor matched in controller by type or class),
143
- the generic controller is chosen. **priority: 10 **;
144
- # The default controller is chosen. This controller can use a default template
145
- to render the content, which will likely further decide how to handle this
146
- content. See also
147
- :ref: `the content bundle documentation <bundles-content-introduction_default-template >`.
148
- **priority: -100 **.
124
+ #. (Explicit controller): If there is a ``_controller `` set in
125
+ ``getRouteDefaults() ``, no enhancer will overwrite the controller.
126
+ ``_template `` will still be inserted if its not already set;
127
+ #. Controller by type: requires the route document to return a 'type' value in
128
+ ``getRouteDefaults() ``. **priority: 60 **;
129
+ #. Controller by class: requires the route document to be an instance of
130
+ ``RouteObjectInterface `` and to return an object for ``getRouteContent() ``.
131
+ The content document is checked for being ``instanceof `` the class names in
132
+ the map and if matched that controller is used. Instanceof is used instead of
133
+ direct comparison to work with proxy classes and other extending classes.
134
+ **priority: 50 **;
135
+ #. Template by class: requires the route document to be an instance of
136
+ ``RouteObjectInterface `` and to return an object for ``getRouteContent() ``.
137
+ The content document is checked for being ``instanceof `` the class names in
138
+ the map and if matched that template will be set as ``'_template' ``.
139
+ **priority: 40 ** for the template, generic controller is set at
140
+ **priority: 30 **;
141
+ #. If a ``_template `` is in the ``$defaults `` but no controller was determined
142
+ so far (neither set on the route nor matched in controller by type or class),
143
+ the generic controller is chosen. **priority: 10 **;
144
+ #. The default controller is chosen. This controller can use a default template
145
+ to render the content, which will likely further decide how to handle this
146
+ content. See also
147
+ :ref: `the content bundle documentation <bundles-content-introduction_default-template >`.
148
+ **priority: -100 **.
149
149
150
150
See :ref: `the configuration reference <reference-config-routing-dynamic >` to
151
151
learn how to configure these enhancers.
0 commit comments