doctrine / DoctrineMongoDBBundle

Integrates Doctrine MongoDB ODM with Symfony
http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
MIT License
377 stars 231 forks source link

Deprecate container injection in fixture classes with `ContainerAwareInterface` #801

Closed GromNaN closed 7 months ago

GromNaN commented 7 months ago

ContainerAwareInterface is deprecated since Symfony 6.4. It was used before, for fixture classes that were not defined as services. As all fixture classes must declared as services to be used by the command, proper dependency injection is easy to do.

Let's deprecate this automatic injection and remove it in 5.0 #802

franmomu commented 7 months ago

thanks @GromNaN!