Skip to content

Commit 99f069e

Browse files
committed
adjust to interface renaming in routing
1 parent 40da71b commit 99f069e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Admin/PageAdmin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
use Doctrine\ODM\PHPCR\DocumentManager;
66
use Sonata\AdminBundle\Admin\AdminInterface;
77
use Symfony\Cmf\Bundle\SimpleCmsBundle\Document\MultilangPage;
8-
use Sonata\DoctrinePHPCRAdminBundle\Admin\Admin as BaseAdmin;
8+
use Sonata\DoctrinePHPCRAdminBundle\Admin\Admin;
99
use Sonata\AdminBundle\Form\FormMapper;
1010
use Sonata\AdminBundle\Datagrid\DatagridMapper;
1111
use Sonata\AdminBundle\Datagrid\ListMapper;
1212
use Knp\Menu\ItemInterface as MenuItemInterface;
1313
use Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page;
1414

15-
class PageAdmin extends BaseAdmin
15+
class PageAdmin extends Admin
1616
{
1717
protected $translationDomain = 'CmfSimpleCmsBundle';
1818

Document/Page.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use Knp\Menu\NodeInterface;
1414

15-
use Symfony\Cmf\Component\Routing\RouteReferrersInterface;
15+
use Symfony\Cmf\Component\Routing\RouteReferrersReadInterface;
1616
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route;
1717

1818
/**
@@ -24,7 +24,11 @@
2424
*
2525
* @PHPCRODM\Document
2626
*/
27-
class Page extends Route implements RouteReferrersInterface, NodeInterface, PublishTimePeriodWriteInterface, PublishableWriteInterface
27+
class Page extends Route implements
28+
RouteReferrersReadInterface, // this must not be the write interface, it would make no sense
29+
NodeInterface,
30+
PublishTimePeriodWriteInterface,
31+
PublishableWriteInterface
2832
{
2933
/**
3034
* @PHPCRODM\Node

0 commit comments

Comments
 (0)