From ade4fdb4ff2ac60c79c64894f4ddbe89080febb5 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Mon, 27 May 2019 17:40:57 -0400 Subject: [PATCH] Fix deprecation on load fixtures command --- Command/LoadDataFixturesDoctrineCommand.php | 4 ++-- Resources/config/services.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 @@ +