Skip to content

Commit d06c787

Browse files
Merge pull request #541 from jaapio/patch-1
Use service name in the example
2 parents 4c0f5a4 + 13f3197 commit d06c787

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Resources/doc/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,9 @@ Here is an example on how to inject the service container into your migrations:
251251
252252
# config/services.yaml
253253
services:
254-
Doctrine\Migrations\Version\DbalMigrationFactory: ~
255254
App\Migrations\Factory\MigrationFactoryDecorator:
256-
decorates: Doctrine\Migrations\Version\DbalMigrationFactory
257-
arguments: ['@App\Migrations\Factory\MigrationFactoryDecorator.inner', '@service_container']
255+
decorates: 'doctrine.migrations.migrations_factory'
256+
arguments: ['@.inner', '@service_container']
258257
259258
260259
.. code-block:: php

0 commit comments

Comments
 (0)