Skip to content

Commit e09eb00

Browse files
committed
Merge branch 'routing-cleanup' of github.com:symfony-cmf/cmf-sandbox into routing-cleanup
Conflicts: composer.lock
2 parents fcbe120 + a0a4ebc commit e09eb00

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/config/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ cmf_routing:
108108
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction
109109

110110
templates_by_class:
111-
Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent: SandboxMainBundle:StaticContent:index.html.twig
112111
Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page: CmfSimpleCmsBundle:Page:index.html.twig
112+
Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent: SandboxMainBundle:StaticContent:index.html.twig
113113

114114
cmf_create:
115115
editor_base_path: /bundles/cmfcreate/vendor/ckeditor/
@@ -135,6 +135,9 @@ sonata_block:
135135

136136
sonata_admin:
137137
extensions:
138+
cmf_core.admin_extension.child:
139+
implements:
140+
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
138141
cmf_core.admin_extension.publish_workflow.time_period:
139142
implements:
140143
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface

src/Sandbox/MainBundle/DataFixtures/PHPCR/LoadRoutingData.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ public function load(ObjectManager $dm)
3434
{
3535
$session = $dm->getPhpcrSession();
3636

37-
$basepath = $this->container->getParameter('cmf_routing.dynamic.persistence.phpcr.route_basepaths');
38-
$basepath = reset($basepath);
37+
$basepath = $this->container->getParameter('cmf_routing.dynamic.persistence.phpcr.admin_basepath');
3938
if ($session->itemExists($basepath)) {
4039
$session->removeItem($basepath);
4140
}

0 commit comments

Comments
 (0)