Skip to content

Commit

Permalink
Merge pull request #541 from jaapio/patch-1
Browse files Browse the repository at this point in the history
Use service name in the example
  • Loading branch information
SenseException committed Apr 8, 2024
2 parents 4c0f5a4 + 13f3197 commit d06c787
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Resources/doc/index.rst
Expand Up @@ -251,10 +251,9 @@ Here is an example on how to inject the service container into your migrations:
# config/services.yaml
services:
Doctrine\Migrations\Version\DbalMigrationFactory: ~
App\Migrations\Factory\MigrationFactoryDecorator:
decorates: Doctrine\Migrations\Version\DbalMigrationFactory
arguments: ['@App\Migrations\Factory\MigrationFactoryDecorator.inner', '@service_container']
decorates: 'doctrine.migrations.migrations_factory'
arguments: ['@.inner', '@service_container']
.. code-block:: php
Expand Down

0 comments on commit d06c787

Please sign in to comment.