Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 72a02cd

Browse files
committed
Merge pull request #589 from symfony-cmf/add-missing-use-statements
add missing use statements to fixture examples
2 parents 17044ed + 041210d commit 72a02cd

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

book/simplecms.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ To create a page, use the
4949
// // src/Acme/MainBundle/DataFixtures/PHPCR/LoadSimpleCms.php
5050
namespace Acme\DemoBundle\DataFixtures\PHPCR;
5151

52-
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
52+
use Doctrine\Common\DataFixtures\FixtureInterface;
53+
use Doctrine\Common\Persistence\ObjectManager;
5354
use Doctrine\ODM\PHPCR\DocumentManager;
55+
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
5456

5557
class LoadSimpleCms implements FixtureInterface
5658
{
@@ -97,8 +99,10 @@ structure, you would do::
9799
// // src/Acme/MainBundle/DataFixtures/PHPCR/LoadSimpleCms.php
98100
namespace Acme\DemoBundle\DataFixtures\PHPCR;
99101

100-
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
102+
use Doctrine\Common\DataFixtures\FixtureInterface;
103+
use Doctrine\Common\Persistence\ObjectManager;
101104
use Doctrine\ODM\PHPCR\DocumentManager;
105+
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
102106

103107
class LoadSimpleCms implements FixtureInterface
104108
{

tutorial/the-frontend.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,13 @@ first level of child items. Modify your fixtures to declare a root element
108108
to which you will add the existing ``Home`` page and an additional ``About`` page::
109109

110110
// 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;
111117

112-
// ...
113118
class LoadPageData implements FixtureInterface
114119
{
115120
public function load(ObjectManager $dm)

0 commit comments

Comments
 (0)