There could be cases when developers needs to inject custom fixture loader into LoadDataFixturesDoctrineCommand, but (un)fortunately SymfonyFixturesLoader is final and cannot be extended to mimic required interface, but at the same time this command is using only \Doctrine\Common\DataFixtures\Loader::getFixtures thus it should be allowed to inject any loader as long as it has getFixtures method.
There could be cases when developers needs to inject custom fixture loader into
LoadDataFixturesDoctrineCommand
, but (un)fortunatelySymfonyFixturesLoader
is final and cannot be extended to mimic required interface, but at the same time this command is using only\Doctrine\Common\DataFixtures\Loader::getFixtures
thus it should be allowed to inject any loader as long as it hasgetFixtures
method.