Skip to content

Commit 7714fac

Browse files
committed
Update for CMF BC breaks
1 parent 53e187a commit 7714fac

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

app/AppKernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ public function registerBundles()
3737
new Symfony\Cmf\Bundle\TreeBrowserBundle\CmfTreeBrowserBundle(),
3838
new Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(),
3939
new Symfony\Cmf\Bundle\SeoBundle\CmfSeoBundle(),
40-
new Burgov\Bundle\KeyValueFormBundle\BurgovKeyValueFormBundle(),
4140
new Symfony\Cmf\Bundle\RoutingAutoBundle\CmfRoutingAutoBundle(),
41+
new Symfony\Cmf\Bundle\ResourceBundle\CmfResourceBundle(),
42+
new Symfony\Cmf\Bundle\ResourceRestBundle\CmfResourceRestBundle(),
4243

4344
// language switcher
4445
new Lunetics\LocaleBundle\LuneticsLocaleBundle(),
@@ -48,15 +49,14 @@ public function registerBundles()
4849
new JMS\SerializerBundle\JMSSerializerBundle(),
4950

5051
// admin bundle
51-
new Sonata\jQueryBundle\SonatajQueryBundle(),
5252
new Sonata\BlockBundle\SonataBlockBundle(),
5353
new Sonata\CoreBundle\SonataCoreBundle(),
5454
new Sonata\AdminBundle\SonataAdminBundle(),
5555
new Sonata\DoctrinePHPCRAdminBundle\SonataDoctrinePHPCRAdminBundle(),
5656
new Sonata\SeoBundle\SonataSeoBundle(),
5757
new Sonata\TranslationBundle\SonataTranslationBundle(),
58-
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
5958
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
59+
new Burgov\Bundle\KeyValueFormBundle\BurgovKeyValueFormBundle(),
6060

6161
// jackalope doctrine caching
6262
new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),

app/config/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ cmf_menu:
118118
voters:
119119
content_identity: ~
120120

121+
cmf_resource:
122+
repositories:
123+
default:
124+
type: doctrine_phpcr_odm
125+
121126
sonata_block:
122127
default_contexts: [cms]
123128
blocks:

app/config/routing.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,9 @@ sonata_admin:
4545
type: sonata_admin
4646
prefix: /{_locale}/admin
4747

48-
fos_js_routing:
49-
resource: '@FOSJsRoutingBundle/Resources/config/routing/routing.xml'
50-
51-
cmf_tree:
52-
resource: .
53-
type: 'cmf_tree'
54-
5548
block_cache:
5649
resource: '@CmfBlockBundle/Resources/config/routing/cache.xml'
5750
prefix: /
51+
52+
cmf_resource:
53+
resource: '@CmfResourceRestBundle/Resources/config/routing.yml'
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
AppBundle\Document\DemoNewsContent:
2-
uri_schema: /news/{date}/{title}
2+
definitions:
3+
- { uri_schema: '/news/{date}/{title}' }
34
token_providers:
45
date: [content_datetime, { method: getDate, date_format: Y-m-d }]
56
title: [content_method, {method: getTitle, slugify: true }]

0 commit comments

Comments
 (0)