Skip to content

Commit f51a03e

Browse files
MrYamousderrabus
andauthored
Update doc for dependencies injection and Symfony 7 (#559)
* doc for dependencies injection and symfony 7 * apply review * Update Resources/doc/index.rst --------- Co-authored-by: Alexander M. Turek <[email protected]>
1 parent 628ac3b commit f51a03e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Resources/doc/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ Here is an example on how to inject the service container into your migrations:
297297
this bundle will automatically inject the default symfony container into your migration class
298298
(this because the ``MigrationFactoryDecorator`` shown in this example is the default migration factory used by this bundle).
299299

300+
.. caution::
301+
302+
The interface ``Symfony\Component\DependencyInjection\ContainerAwareInterface`` has been deprecated in Symfony 6.4 and
303+
removed in 7.0. If you use this version or newer, there is currently no way to inject the service container into migrations.
304+
300305

301306
Generating Migrations Automatically
302307
-----------------------------------

0 commit comments

Comments
 (0)