Skip to content

Commit d780a68

Browse files
committed
Merge pull request #297 from symfony-cmf/fix-bc-break
revert BC break introduced in #292
2 parents 87634cb + 12af339 commit d780a68

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Admin/RouteAdmin.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Sonata\AdminBundle\Datagrid\ListMapper;
1616
use Sonata\AdminBundle\Form\FormMapper;
1717
use Sonata\DoctrinePHPCRAdminBundle\Admin\Admin;
18+
use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
1819
use Symfony\Cmf\Bundle\RoutingBundle\Model\Route;
1920
use PHPCR\Util\PathHelper;
2021

@@ -40,6 +41,13 @@ class RouteAdmin extends Admin
4041
*/
4142
protected $contentClass;
4243

44+
/**
45+
* @var ControllerResolverInterface
46+
*
47+
* @deprecated Since 1.4, use the RouteDefaults validator on your document.
48+
*/
49+
protected $controllerResolver;
50+
4351
protected function configureListFields(ListMapper $listMapper)
4452
{
4553
$listMapper
@@ -109,6 +117,14 @@ public function setContentRoot($contentRoot)
109117
$this->contentRoot = $contentRoot;
110118
}
111119

120+
/**
121+
* @deprecated Since 1.4, use the RouteDefaults validator on your document.
122+
*/
123+
public function setControllerResolver($controllerResolver)
124+
{
125+
$this->controllerResolver = $controllerResolver;
126+
}
127+
112128
public function getExportFormats()
113129
{
114130
return array();

Resources/config/admin-phpcr.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
<call method="setRouteRoot">
3333
<argument>%cmf_routing.dynamic.persistence.phpcr.admin_basepath%</argument>
3434
</call>
35+
36+
<call method="setControllerResolver">
37+
<argument type="service" id="controller_resolver" />
38+
</call>
3539
</service>
3640

3741
<service id="cmf_routing.redirect_route_admin" class="%cmf_routing.redirect_route_admin.class%">

0 commit comments

Comments
 (0)