File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ * ** 2017-02-06** : [ BC BREAK] The bundle dynamic router no longer renames the ` _template ` parameter to ` contentTemplate ` .
5
+ The parameter is still moved from the route defaults to the request attributes.
4
6
* ** 2017-02-03** : [ BC BREAK] Removed unused ` cmf_routing.dynamic.persistence.phpcr.content_basepath `
5
7
6
8
2.0.0-RC1
Original file line number Diff line number Diff line change 198
198
</dynamic>
199
199
</config>
200
200
` ` `
201
+
202
+ # # Route Template
203
+
204
+ The `_template` paramter is no longer renamed to `contentTemplate`. The
205
+ CmfContentBundle has been adjusted accordingly. If you have your own
206
+ controllers that expect a template argument, adjust them accordingly.
207
+
208
+ **Before**
209
+ ` ` ` php
210
+ $route = new Route();
211
+ $route->setParent($routeRoot);
212
+ ` ` `
213
+
214
+ **After**
215
+ ` ` ` php
216
+ $route = new Route();
217
+ $route->setParentDocument($routeRoot);
218
+ ` ` `
219
+
220
+ # # Configuration
221
+
222
+ * Removed the `route_basepath` setting, use `route_basepaths` instead.
223
+
224
+ **Before**
225
+ ` ` ` php
226
+ public function documentAction($contentDocument, $contentTemplate) {
227
+ ...
228
+ ` ` `
229
+
230
+ **After**
231
+ ` ` ` php
232
+ public function documentAction($contentDocument, $template) {
233
+ ...
234
+ ` ` `
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class DynamicRouter extends BaseDynamicRouter
41
41
* key for the request attribute that contains the template this document
42
42
* wants to use.
43
43
*/
44
- const CONTENT_TEMPLATE = 'contentTemplate ' ;
44
+ const CONTENT_TEMPLATE = '_template ' ;
45
45
46
46
/**
47
47
* @var Request
You can’t perform that action at this time.
0 commit comments