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

Commit e9a920f

Browse files
committed
cleanup from feedback
1 parent 9c7471c commit e9a920f

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

bundles/phpcr_odm/events.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can tag services to listen to Doctrine PHPCR-ODM events. It works the same
1919
way as for `Doctrine ORM events`_. The only differences are:
2020

2121
* use the tag name ``doctrine_phpcr.event_listener`` resp.
22-
``doctrine_phpcr.event_subscriber`` instead of ``doctrine.event_listener``.
22+
``doctrine_phpcr.event_subscriber`` instead of ``doctrine.event_listener``;
2323
* expect the argument to be of class
2424
``Doctrine\Common\Persistence\Event\LifecycleEventArgs``.
2525

@@ -47,10 +47,12 @@ use this configuration:
4747
<?xml version="1.0" ?>
4848
<container xmlns="http://symfony.com/schema/dic/services">
4949
<services>
50-
<service id="acme_search.listener.search" class="Acme\SearchBundle\EventListener\SearchIndexer">
50+
<service id="acme_search.listener.search"
51+
class="Acme\SearchBundle\EventListener\SearchIndexer">
5152
<tag name="doctrine_phpcr.event_listener" event="postPersist" />
5253
</service>
53-
<service id="acme_search.subscriber.fancy" class="Acme\SearchBundle\EventSubscriber\MySubscriber">
54+
<service id="acme_search.subscriber.fancy"
55+
class="Acme\SearchBundle\EventSubscriber\MySubscriber">
5456
<tag name="doctrine_phpcr.event_subscriber" />
5557
</service>
5658
</services>

bundles/phpcr_odm/fixtures_initializers.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ repository.
2323

2424
The concept of base paths is needed because there are no separate "tables"
2525
as in a relational database, but one tree containing all data. To be able
26-
to add a document, you need to ensure the parent path where you want to
27-
add it is already present in the repository.
26+
to add a document, you need to ensure the parent path is already present
27+
in the repository.
2828

2929
Initializers have to implement the
3030
``Doctrine\Bundle\PHPCRBundle\Initializer\InitializerInterface``. If you don't
@@ -59,7 +59,8 @@ A service to use the generic initializer looks like this:
5959
.. code-block:: xml
6060
6161
<!-- src/Acme/ContentBundle/Resources/config/services.xml -->
62-
<service id="acme_content.phpcr.initializer" class="Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer">
62+
<service id="acme_content.phpcr.initializer"
63+
class="Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer">
6364
<argument>AcmeContentBundle Basepaths</argument>
6465
<argument type="collection">
6566
<argument>/my/content</argument>
@@ -208,7 +209,7 @@ scripts. Migrations should implement the
208209
service with a ``doctrine_phpcr.migrator`` tag contains an ``alias`` attribute
209210
uniquely identifying the migrator. There is an optional
210211
``Doctrine\Bundle\PHPCRBundle\Migrator\AbstractMigrator`` class to use as a
211-
basis:
212+
basis.
212213

213214
.. configuration-block::
214215

@@ -227,7 +228,8 @@ basis:
227228
<!-- src/Acme/ContentBundle/Resources/config/services.xml -->
228229
<?xml version="1.0" ?>
229230
<container xmlns="http://symfony.com/schema/dic/services">
230-
<service id="acme.demo.migration.foo" class="Acme\DemoBundle\Migration\Foo">
231+
<service id="acme.demo.migration.foo"
232+
class="Acme\DemoBundle\Migration\Foo">
231233
<argument type="collection">
232234
<argument>%acme.content_basepath%</argument>
233235
<argument>%acme.menu_basepath%</argument>
@@ -282,7 +284,7 @@ install the `DoctrineFixturesBundle`_ which brings the
282284
Fixtures work the same way they work for Doctrine ORM. You write fixture
283285
classes implementing ``Doctrine\Common\DataFixtures\FixtureInterface``. If you
284286
place them in ``<Bundle>\DataFixtures\PHPCR``, they will be auto detected if you
285-
specify no path to the fixture loading command.
287+
don't specify a path in the command.
286288

287289
A simple example fixture class looks like this::
288290

bundles/phpcr_odm/multilang.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ depending on the locale.
143143
.. code-block:: xml
144144
145145
<doctrine-mapping>
146-
<document class="MyPersistentClass" translator="attribute">
146+
<document class="MyPersistentClass"
147+
translator="attribute">
147148
<locale fieldName="locale" />
148149
<field fieldName="publishDate" type="date" />
149150
<field fieldName="topic" type="string" translated="true" />

0 commit comments

Comments
 (0)