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:
8686cmf_simple_cms :
8787 routing :
8888 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
9090 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
9492
9593knp_menu :
9694 twig : true
Original file line number Diff line number Diff line change 66
77use Symfony \Component \Yaml \Parser ;
88
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 ;
1212
1313use Symfony \Cmf \Bundle \MenuBundle \Doctrine \Phpcr \MenuNode ;
1414
15- class LoadSimpleCmsData extends LoadCmsData
15+ class LoadSimpleCmsData extends AbstractLoadPageData
1616{
1717 private $ yaml ;
1818
@@ -34,7 +34,7 @@ public function load(ObjectManager $dm)
3434
3535 $ data = $ this ->yaml ->parse (file_get_contents (__DIR__ . '/../../Resources/data/external.yml ' ));
3636
37- $ basepath = $ this ->container -> getParameter ( ' cmf_simple_cms.basepath ' );
37+ $ basepath = $ this ->getBasePath ( );
3838 $ home = $ dm ->find (null , $ basepath );
3939
4040 $ route = new MultilangRoute ();
You can’t perform that action at this time.
0 commit comments