|
@@ -831,7 +831,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
public function getBaseRoutePattern()
|
|
|
{
|
|
|
if (!$this->baseRoutePattern) {
|
|
|
- preg_match('@([A-Za-z0-9]*)\\\([A-Za-z0-9]*)Bundle\\\(Entity|Document|Model)\\\(.*)@', $this->getClass(), $matches);
|
|
|
+ preg_match('@([A-Za-z0-9]*)\\\([A-Za-z0-9]*)Bundle\\\(Entity|Document|Model|PHPCR)\\\(.*)@', $this->getClass(), $matches);
|
|
|
|
|
|
if (!$matches) {
|
|
|
throw new \RuntimeException(sprintf('Please define a default `baseRoutePattern` value for the admin class `%s`', get_class($this)));
|
|
@@ -865,7 +865,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
|
|
|
public function getBaseRouteName()
|
|
|
{
|
|
|
if (!$this->baseRouteName) {
|
|
|
- preg_match('@([A-Za-z0-9]*)\\\([A-Za-z0-9]*)Bundle\\\(Entity|Document|Model)\\\(.*)@', $this->getClass(), $matches);
|
|
|
+ preg_match('@([A-Za-z0-9]*)\\\([A-Za-z0-9]*)Bundle\\\(Entity|Document|Model|PHPCR)\\\(.*)@', $this->getClass(), $matches);
|
|
|
|
|
|
if (!$matches) {
|
|
|
throw new \RuntimeException(sprintf('Please define a default `baseRouteName` value for the admin class `%s`', get_class($this)));
|