This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,10 @@ To create a page, use the
49
49
// // src/Acme/MainBundle/DataFixtures/PHPCR/LoadSimpleCms.php
50
50
namespace Acme\DemoBundle\DataFixtures\PHPCR;
51
51
52
- use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
52
+ use Doctrine\Common\DataFixtures\FixtureInterface;
53
+ use Doctrine\Common\Persistence\ObjectManager;
53
54
use Doctrine\ODM\PHPCR\DocumentManager;
55
+ use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
54
56
55
57
class LoadSimpleCms implements FixtureInterface
56
58
{
@@ -97,8 +99,10 @@ structure, you would do::
97
99
// // src/Acme/MainBundle/DataFixtures/PHPCR/LoadSimpleCms.php
98
100
namespace Acme\DemoBundle\DataFixtures\PHPCR;
99
101
100
- use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
102
+ use Doctrine\Common\DataFixtures\FixtureInterface;
103
+ use Doctrine\Common\Persistence\ObjectManager;
101
104
use Doctrine\ODM\PHPCR\DocumentManager;
105
+ use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
102
106
103
107
class LoadSimpleCms implements FixtureInterface
104
108
{
Original file line number Diff line number Diff line change @@ -108,8 +108,13 @@ first level of child items. Modify your fixtures to declare a root element
108
108
to which you will add the existing ``Home `` page and an additional ``About `` page::
109
109
110
110
// src/Acme/BasicCmsBundle/DataFixtures/Phpcr/LoadPageData.php
111
+ namespace Acme\DemoBundle\DataFixtures\PHPCR;
112
+
113
+ use Doctrine\Common\DataFixtures\FixtureInterface;
114
+ use Doctrine\Common\Persistence\ObjectManager;
115
+ use Doctrine\ODM\PHPCR\DocumentManager;
116
+ use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
111
117
112
- // ...
113
118
class LoadPageData implements FixtureInterface
114
119
{
115
120
public function load(ObjectManager $dm)
You can’t perform that action at this time.
0 commit comments