File tree Expand file tree Collapse file tree 5 files changed +26
-11
lines changed
Resources/config/doctrine-phpcr Expand file tree Collapse file tree 5 files changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,12 @@ protected function createPageInstance($className)
34
34
35
35
protected function getBasePath ()
36
36
{
37
- return $ this ->container ->getParameter ('cmf_simple_cms.basepath ' );
37
+ return $ this ->container ->getParameter ('cmf_simple_cms.persistence.phpcr. basepath ' );
38
38
}
39
39
40
40
protected function getDefaultClass ()
41
41
{
42
- return $ this ->container ->getParameter ('cmf_simple_cms.locales ' )
43
- ? $ this ->defaultClass ['multilangpage ' ] : $ this ->defaultClass ['page ' ];
42
+ return $ this ->defaultClass ['page ' ];
44
43
}
45
44
46
45
public function load (ObjectManager $ dm )
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \Cmf \Bundle \SimpleCmsBundle \Document ;
3
+ namespace Symfony \Cmf \Bundle \SimpleCmsBundle \Doctrine \ Phpcr ;
4
4
5
5
use Symfony \Cmf \Bundle \RoutingBundle \Doctrine \Phpcr \RedirectRoute ;
6
6
7
- use Doctrine \ODM \PHPCR \Mapping \Annotations as PHPCRODM ;
8
-
9
7
/**
10
- * @PHPCRODM\Document
11
- *
12
8
* provides multi language support when using MultilangRouteProvider
13
9
*/
14
10
class MultilangRedirectRoute extends RedirectRoute
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \Cmf \Bundle \SimpleCmsBundle \Document ;
3
+ namespace Symfony \Cmf \Bundle \SimpleCmsBundle \Doctrine \ Phpcr ;
4
4
5
5
use Symfony \Cmf \Bundle \RoutingBundle \Doctrine \Phpcr \Route ;
6
6
7
- use Doctrine \ODM \PHPCR \Mapping \Annotations as PHPCRODM ;
8
-
9
7
/**
10
8
* Provides multi language support when using MultilangRouteProvider
11
9
*/
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments