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 5eb84d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/DoctrineMongoDBExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,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');

Check warning on line 105 in src/DependencyInjection/DoctrineMongoDBExtension.php

View check run for this annotation

Codecov / codecov/patch

src/DependencyInjection/DoctrineMongoDBExtension.php#L105

Added line #L105 was not covered by tests
}

// load the connections
Expand Down

0 comments on commit 5eb84d0

Please sign in to comment.