Skip to content

Commit

Permalink
doc for dependencies injection and symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYamous authored Nov 7, 2024
1 parent 628ac3b commit 5e61df7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ Here is an example on how to inject the service container into your migrations:
this bundle will automatically inject the default symfony container into your migration class
(this because the ``MigrationFactoryDecorator`` shown in this example is the default migration factory used by this bundle).

.. caution::

The interface ``Symfony\Component\DependencyInjection\ContainerAwareInterface`` has been deprecated in Symfony 6.4 and
removed in 7.0. If you use this version or newer, there is currently no way to inject dependencies in migrations.


Generating Migrations Automatically
-----------------------------------
Expand Down

0 comments on commit 5e61df7

Please sign in to comment.