Skip to content

Commit a0a4ebc

Browse files
committed
update sandbox to routing refactoring
1 parent dc5d077 commit a0a4ebc

File tree

3 files changed

+39
-45
lines changed

3 files changed

+39
-45
lines changed

app/config/config.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,6 @@ cmf_core:
9595
phpcr:
9696
enabled: true
9797

98-
cmf_menu:
99-
persistence:
100-
phpcr:
101-
# TODO remove once https://github.com/jackalope/jackalope-doctrine-dbal/issues/189 is fixed
102-
prefetch: 0
103-
10498
cmf_routing:
10599
chain:
106100
routers_by_id:
@@ -114,8 +108,8 @@ cmf_routing:
114108
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction
115109

116110
templates_by_class:
117-
Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent: SandboxMainBundle:StaticContent:index.html.twig
118111
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
119113

120114
cmf_create:
121115
editor_base_path: /bundles/cmfcreate/vendor/ckeditor/
@@ -141,6 +135,9 @@ sonata_block:
141135

142136
sonata_admin:
143137
extensions:
138+
cmf_core.admin_extension.child:
139+
implements:
140+
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
144141
cmf_core.admin_extension.publish_workflow.time_period:
145142
implements:
146143
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface

composer.lock

Lines changed: 34 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)