From c2238501c3b61ffa0be9e2ff64b60fdeac8978dd Mon Sep 17 00:00:00 2001 From: Christian Raue Date: Fri, 7 Jun 2019 22:17:46 +0200 Subject: [PATCH] avoid deprecation notice from `LoadDataFixturesDoctrineCommand` --- Command/LoadDataFixturesDoctrineCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/LoadDataFixturesDoctrineCommand.php b/Command/LoadDataFixturesDoctrineCommand.php index 18fc371d..11433848 100644 --- a/Command/LoadDataFixturesDoctrineCommand.php +++ b/Command/LoadDataFixturesDoctrineCommand.php @@ -84,7 +84,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $ui = new SymfonyStyle($input, $output); /** @var ManagerRegistry $doctrine */ - $doctrine = $this->getContainer()->get('doctrine'); + $doctrine = $this->getDoctrine(); $em = $doctrine->getManager($input->getOption('em')); if (! $input->getOption('append')) {