Skip to content

Commit 740f722

Browse files
authored
Update index.rst
Added precision on service detection.
1 parent a345e6c commit 740f722

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/index.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ Once your fixtures have been written, load them by executing this command:
7373

7474
This command looks for all services tagged with ``doctrine.fixture.orm``. If you're
7575
using the `default service configuration`_, any class that implements ``ORMFixtureInterface``
76-
(for example, those extending from ``Fixture``) will automatically be registered
77-
with this tag.
76+
(for example, those extending from ``Doctrine\Bundle\FixturesBundle\Fixture``) will automatically
77+
be registered with this tag.
78+
Please note the Bundle uses `a compiler pass to detect the services
79+
<https://github.com/doctrine/DoctrineFixturesBundle/blob/HEAD/src/DependencyInjection/CompilerPass/FixturesCompilerPass.php>`_, and in so,
80+
they should be instanciable (declaring their constructor as `private` would prevent
81+
them from being detected, for instance).
7882

7983
To see other options for the command, run:
8084

0 commit comments

Comments
 (0)