From 4ad348749a6b48b74aa8bfbc08343d6635f9eefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Sat, 9 Dec 2023 12:01:05 +0100 Subject: [PATCH] Remove on fixture classes --- Loader/SymfonyFixturesLoader.php | 4 ---- UPGRADE-5.0.md | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Loader/SymfonyFixturesLoader.php b/Loader/SymfonyFixturesLoader.php index 9c5e802e..4c2e086b 100644 --- a/Loader/SymfonyFixturesLoader.php +++ b/Loader/SymfonyFixturesLoader.php @@ -67,10 +67,6 @@ public function addFixture(FixtureInterface $fixture): void $this->addGroupsFixtureMapping($class, $fixture::getGroups()); } - if ($fixture instanceof ContainerAwareInterface) { - $fixture->setContainer($this->container); - } - parent::addFixture($fixture); } diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md index 7692f3be..820e5df4 100644 --- a/UPGRADE-5.0.md +++ b/UPGRADE-5.0.md @@ -10,4 +10,6 @@ UPGRADE FROM 4.x to 5.0 `Doctrine\Bundle\MongoDBBundle\Command\DoctrineODMCommand` have been removed without replacement. * The `Doctrine\Bundle\MongoDBBundle\Command\DoctrineODMCommand` class is now - `@internal`, you should not extend from this class. \ No newline at end of file + `@internal`, you should not extend from this class. +* Remove support for `services` option in `doctrine:mongodb:fixtures:load` command. +* Remove `ContainerAwareInterface` on fixture classes.