File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
src/Acme/MainBundle/DataFixtures/PHPCR Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,9 @@ cmf_create:
86
86
cmf_simple_cms :
87
87
routing :
88
88
templates_by_class :
89
- Symfony\Cmf\Bundle\SimpleCmsBundle\Document\ Page : CmfSimpleCmsBundle:Page:index.html.twig
89
+ Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\ Page : CmfSimpleCmsBundle:Page:index.html.twig
90
90
controllers_by_class :
91
- Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute : cmf_routing.redirect_controller:redirectAction
92
- multilang :
93
- locales : %locales%
91
+ Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute : cmf_routing.redirect_controller:redirectAction
94
92
95
93
knp_menu :
96
94
twig : true
Original file line number Diff line number Diff line change 6
6
7
7
use Symfony \Component \Yaml \Parser ;
8
8
9
- use Symfony \Cmf \Bundle \SimpleCmsBundle \DataFixtures \LoadCmsData ;
10
- use Symfony \Cmf \Bundle \SimpleCmsBundle \Document \MultilangRedirectRoute ;
11
- use Symfony \Cmf \Bundle \SimpleCmsBundle \Document \MultilangRoute ;
9
+ use Symfony \Cmf \Bundle \SimpleCmsBundle \DataFixtures \Phpcr \ AbstractLoadPageData ;
10
+ use Symfony \Cmf \Bundle \SimpleCmsBundle \Doctrine \ Phpcr \MultilangRedirectRoute ;
11
+ use Symfony \Cmf \Bundle \SimpleCmsBundle \Doctrine \ Phpcr \MultilangRoute ;
12
12
13
13
use Symfony \Cmf \Bundle \MenuBundle \Doctrine \Phpcr \MenuNode ;
14
14
15
- class LoadSimpleCmsData extends LoadCmsData
15
+ class LoadSimpleCmsData extends AbstractLoadPageData
16
16
{
17
17
private $ yaml ;
18
18
@@ -34,7 +34,7 @@ public function load(ObjectManager $dm)
34
34
35
35
$ data = $ this ->yaml ->parse (file_get_contents (__DIR__ . '/../../Resources/data/external.yml ' ));
36
36
37
- $ basepath = $ this ->container -> getParameter ( ' cmf_simple_cms.basepath ' );
37
+ $ basepath = $ this ->getBasePath ( );
38
38
$ home = $ dm ->find (null , $ basepath );
39
39
40
40
$ route = new MultilangRoute ();
You can’t perform that action at this time.
0 commit comments