Skip to content

Commit 5c59ef2

Browse files
committed
more refactoring fixes
1 parent fddd666 commit 5c59ef2

File tree

5 files changed

+26
-11
lines changed

5 files changed

+26
-11
lines changed

DataFixtures/Phpcr/AbstractLoadPageData.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ protected function createPageInstance($className)
3434

3535
protected function getBasePath()
3636
{
37-
return $this->container->getParameter('cmf_simple_cms.basepath');
37+
return $this->container->getParameter('cmf_simple_cms.persistence.phpcr.basepath');
3838
}
3939

4040
protected function getDefaultClass()
4141
{
42-
return $this->container->getParameter('cmf_simple_cms.locales')
43-
? $this->defaultClass['multilangpage'] : $this->defaultClass['page'];
42+
return $this->defaultClass['page'];
4443
}
4544

4645
public function load(ObjectManager $dm)

Doctrine/Phpcr/MultilangRedirectRoute.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
<?php
22

3-
namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Document;
3+
namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr;
44

55
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute;
66

7-
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
8-
97
/**
10-
* @PHPCRODM\Document
11-
*
128
* provides multi language support when using MultilangRouteProvider
139
*/
1410
class MultilangRedirectRoute extends RedirectRoute

Doctrine/Phpcr/MultilangRoute.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?php
22

3-
namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Document;
3+
namespace Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr;
44

55
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route;
66

7-
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
8-
97
/**
108
* Provides multi language support when using MultilangRouteProvider
119
*/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<doctrine-mapping
2+
xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
5+
https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
6+
>
7+
8+
<document name="Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\MultilangRedirectRoute"/>
9+
10+
</doctrine-mapping>
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<doctrine-mapping
2+
xmlns="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://doctrine-project.org/schemas/phpcr-odm/phpcr-mapping
5+
https://github.com/doctrine/phpcr-odm/raw/master/doctrine-phpcr-odm-mapping.xsd"
6+
>
7+
8+
<document name="Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\MultilangRoute"/>
9+
10+
</doctrine-mapping>
11+

0 commit comments

Comments
 (0)