diff --git a/Command/LoadDataFixturesDoctrineCommand.php b/Command/LoadDataFixturesDoctrineCommand.php index 2aa95c6f..267d5c71 100644 --- a/Command/LoadDataFixturesDoctrineCommand.php +++ b/Command/LoadDataFixturesDoctrineCommand.php @@ -26,9 +26,9 @@ class LoadDataFixturesDoctrineCommand extends DoctrineCommand /** @var SymfonyFixturesLoader */ private $fixturesLoader; - public function __construct(SymfonyFixturesLoader $fixturesLoader) + public function __construct(SymfonyFixturesLoader $fixturesLoader, ManagerRegistry $doctrine = null) { - parent::__construct(); + parent::__construct($doctrine); $this->fixturesLoader = $fixturesLoader; } diff --git a/Resources/config/services.xml b/Resources/config/services.xml index 6a1b439e..60234d13 100644 --- a/Resources/config/services.xml +++ b/Resources/config/services.xml @@ -7,6 +7,7 @@ +