Skip to content

Commit

Permalink
Fix partial service removed when fixtures package is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 22, 2023
1 parent f487162 commit b14d116
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DependencyInjection/DoctrineMongoDBExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Composer\InstalledVersions;
use Doctrine\Bundle\MongoDBBundle\Attribute\AsDocumentListener;
use Doctrine\Bundle\MongoDBBundle\Attribute\MapDocument;
use Doctrine\Bundle\MongoDBBundle\Command\LoadDataFixturesDoctrineODMCommand;
use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\FixturesCompilerPass;
use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\ServiceRepositoryCompilerPass;
use Doctrine\Bundle\MongoDBBundle\Fixture\ODMFixtureInterface;
Expand Down Expand Up @@ -102,7 +101,7 @@ public function load(array $configs, ContainerBuilder $container): void
->addTag(FixturesCompilerPass::FIXTURE_TAG);
} else {
$container->removeDefinition('doctrine_mongodb.odm.symfony.fixtures.loader');
$container->removeDefinition(LoadDataFixturesDoctrineODMCommand::class);
$container->removeDefinition('doctrine_mongodb.odm.command.load_data_fixtures');
}

// load the connections
Expand Down

0 comments on commit b14d116

Please sign in to comment.