DoctrineMigrationsBundle
DoctrineMigrationsBundle copied to clipboard
Migration dependency injection in Symfony 7.0
The current documentation (https://symfony.com/bundles/DoctrineMigrationsBundle/current/index.html#migration-dependencies) refers to using ContainerAwareInterface
in order to inject the entire container into a migration. In Symfony 6.4 this interface is deprecated, and it is removed in 7.0. (https://github.com/symfony/symfony-docs/issues/18440)
Is there a recommended way to tackle dependency injection for migrations in Symfony 7.0? Are code changes needed in this library in order to replicate the old functionality, or is an update of the docs sufficient?