WithDependenciesFixtures.php 757 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Bundle\FixturesBundle\Tests\Fixtures\FooBundle\DataFixtures;
  4. use Doctrine\Bundle\FixturesBundle\FixtureGroupInterface;
  5. use Doctrine\Bundle\FixturesBundle\ORMFixtureInterface;
  6. use Doctrine\Common\DataFixtures\DependentFixtureInterface;
  7. use Doctrine\Persistence\ObjectManager;
  8. class WithDependenciesFixtures implements ORMFixtureInterface, DependentFixtureInterface, FixtureGroupInterface
  9. {
  10. public function load(ObjectManager $manager) : void
  11. {
  12. // ...
  13. }
  14. public function getDependencies() : array
  15. {
  16. return [OtherFixtures::class];
  17. }
  18. public static function getGroups() : array
  19. {
  20. return ['missingDependencyGroup', 'fulfilledDependencyGroup'];
  21. }
  22. }