Skip to content

Commit

Permalink
Remove on fixture classes
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 9, 2023
1 parent bf93512 commit 4ad3487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Loader/SymfonyFixturesLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 3 additions & 1 deletion UPGRADE-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
`@internal`, you should not extend from this class.
* Remove support for `services` option in `doctrine:mongodb:fixtures:load` command.
* Remove `ContainerAwareInterface` on fixture classes.

0 comments on commit 4ad3487

Please sign in to comment.