Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,23 @@ First, add a new ``PSR-4`` autoload-entry in the ``composer.json`` with the new
"autoload-dev": {
"psr-4": {
"...": "...",
"DataFixtures\\": "fixtures"
"DataFixtures\\": "fixtures\"
}
},

.. note::

You need to dump the autoloader with composer dump-autoloader

Then, enable Dependency Injection for the ``fixtures`` directory:

.. code-block:: yaml

# config/services.yaml
services:
DataFixtures\:
resource: '../fixtures'

.. code-block:: php

// config/services.php
Expand Down