Skip to content

Commit bc40775

Browse files
committed
Merge pull request #244 from symfony-cmf/routing-cleanup
adjust to routing cleanup
2 parents 83d4c1b + e09eb00 commit bc40775

14 files changed

+209
-285
lines changed

.travis.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,4 @@ script: phpunit -c app
2727

2828
notifications:
2929
irc: "irc.freenode.org#symfony-cmf"
30-
email: "symfony-cmf-devs@googlegroups.com"
31-
32-
#matrix:
33-
# allow_failures:
34-
# - env: TRANSPORT=midgard_sqlite MIDGARD_EXT_VERSION=ratatoskr
35-
# - env: TRANSPORT=midgard_mysql MIDGARD_EXT_VERSION=ratatoskr
36-
# - env: TRANSPORT=midgard_sqlite MIDGARD_EXT_VERSION=gjallarhorn
37-
# - env: TRANSPORT=midgard_mysql MIDGARD_EXT_VERSION=gjallarhorn
30+
email: "symfony-cmf-devs@googlegroups.com"

app/config/config.yml

Lines changed: 4 additions & 11 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:
@@ -113,13 +107,9 @@ cmf_routing:
113107
Sandbox\MainBundle\Document\DemoClassContent: sandbox_main.controller:classAction
114108
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction
115109

116-
templates_by_class:
117-
Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent: SandboxMainBundle:StaticContent:index.html.twig
118-
119-
cmf_simple_cms:
120-
routing:
121110
templates_by_class:
122111
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
123113

124114
cmf_create:
125115
editor_base_path: /bundles/cmfcreate/vendor/ckeditor/
@@ -145,6 +135,9 @@ sonata_block:
145135

146136
sonata_admin:
147137
extensions:
138+
cmf_core.admin_extension.child:
139+
implements:
140+
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
148141
cmf_core.admin_extension.publish_workflow.time_period:
149142
implements:
150143
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface

app/config/phpcr_doctrine_dbal.yml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
parameters:
22
phpcr_backend:
3+
logging: true
4+
profiling: true
35
type: doctrinedbal
46
connection: default
57
caches:

app/config/phpcr_jackrabbit.yml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
parameters:
22
phpcr_backend:
3+
logging: true
4+
profiling: true
35
type: jackrabbit
46
url: http://localhost:8080/server/
57
phpcr_workspace: default

app/config/phpcr_midgard_mysql.yml.dist

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/config/phpcr_midgard_sqlite.yml.dist

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/tests/AdminTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ protected function doTestReachableAdminRoutes($admin)
110110

111111
// if an ID is required, try and find a document to test
112112
if (isset($requirements['id'])) {
113-
if ($document = $this->dm->getRepository($class)->findOneBy(array())) {
113+
$document = $admin->createQuery('list')->execute()->first();
114+
if ($document) {
114115
$node = $this->dm->getNodeForDocument($document);
115116
$routeParams['id'] = $node->getPath();
116117
} else {

app/tests/travis_midgard_install.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/tests/travis_midgard_mysql.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/tests/travis_midgard_sqlite.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)