Skip to content

Commit 06dc519

Browse files
committed
updated SimpleCmsBundle config and fixture loading
1 parent 44f06c1 commit 06dc519

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

app/config/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ cmf_create:
8686
cmf_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

9593
knp_menu:
9694
twig: true

src/Acme/MainBundle/DataFixtures/PHPCR/LoadSimpleCmsData.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
use 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

1313
use 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();

0 commit comments

Comments
 (0)