Skip to content

Commit

Permalink
Fix deprecation on load fixtures command
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed May 27, 2019
1 parent 1919ad2 commit ade4fdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Command/LoadDataFixturesDoctrineCommand.php
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions Resources/config/services.xml
Expand Up @@ -7,6 +7,7 @@
<!-- commands -->
<service id="doctrine.fixtures_load_command" class="Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand">
<argument type="service" id="doctrine.fixtures.loader" />
<argument type="service" id="doctrine" on-invalid="null" />
<tag name="console.command" command="doctrine:fixtures:load" />
</service>

Expand Down

0 comments on commit ade4fdb

Please sign in to comment.