Skip to content

Commit a934e2c

Browse files
committed
work around sonata admin issue
1 parent 4f400c5 commit a934e2c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Admin/RedirectRouteAdmin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ class RedirectRouteAdmin extends Admin
1111
{
1212
protected $translationDomain = 'CmfRoutingBundle';
1313

14+
/**
15+
* work around https://github.com/sonata-project/SonataAdminBundle/pull/1472
16+
*/
17+
protected $baseRouteName = 'cmf_routing';
18+
19+
/**
20+
* work around https://github.com/sonata-project/SonataAdminBundle/pull/1472
21+
*/
22+
protected $baseRoutePattern = '/cmf/routing/redirectroute';
23+
1424
/**
1525
* Root path for the route parent selection
1626
* @var string

Admin/RouteAdmin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ class RouteAdmin extends Admin
1515
{
1616
protected $translationDomain = 'CmfRoutingBundle';
1717

18+
/**
19+
* work around https://github.com/sonata-project/SonataAdminBundle/pull/1472
20+
*/
21+
protected $baseRouteName = 'cmf_routing';
22+
23+
/**
24+
* work around https://github.com/sonata-project/SonataAdminBundle/pull/1472
25+
*/
26+
protected $baseRoutePattern = '/cmf/routing/route';
27+
1828
/**
1929
* Root path for the route parent selection
2030
* @var string

0 commit comments

Comments
 (0)