File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 15
15
use Sonata \AdminBundle \Datagrid \ListMapper ;
16
16
use Sonata \AdminBundle \Form \FormMapper ;
17
17
use Sonata \DoctrinePHPCRAdminBundle \Admin \Admin ;
18
+ use Symfony \Component \HttpKernel \Controller \ControllerResolverInterface ;
18
19
use Symfony \Cmf \Bundle \RoutingBundle \Model \Route ;
19
20
use PHPCR \Util \PathHelper ;
20
21
@@ -40,6 +41,13 @@ class RouteAdmin extends Admin
40
41
*/
41
42
protected $ contentClass ;
42
43
44
+ /**
45
+ * @var ControllerResolverInterface
46
+ *
47
+ * @deprecated Since 1.4, use the RouteDefaults validator on your document.
48
+ */
49
+ protected $ controllerResolver ;
50
+
43
51
protected function configureListFields (ListMapper $ listMapper )
44
52
{
45
53
$ listMapper
@@ -109,6 +117,14 @@ public function setContentRoot($contentRoot)
109
117
$ this ->contentRoot = $ contentRoot ;
110
118
}
111
119
120
+ /**
121
+ * @deprecated Since 1.4, use the RouteDefaults validator on your document.
122
+ */
123
+ public function setControllerResolver ($ controllerResolver )
124
+ {
125
+ $ this ->controllerResolver = $ controllerResolver ;
126
+ }
127
+
112
128
public function getExportFormats ()
113
129
{
114
130
return array ();
Original file line number Diff line number Diff line change 32
32
<call method =" setRouteRoot" >
33
33
<argument >%cmf_routing.dynamic.persistence.phpcr.admin_basepath%</argument >
34
34
</call >
35
+
36
+ <call method =" setControllerResolver" >
37
+ <argument type =" service" id =" controller_resolver" />
38
+ </call >
35
39
</service >
36
40
37
41
<service id =" cmf_routing.redirect_route_admin" class =" %cmf_routing.redirect_route_admin.class%" >
You can’t perform that action at this time.
0 commit comments