Skip to content

Commit

Permalink
Use search manager interface instead of actual class (#177)
Browse files Browse the repository at this point in the history
Reindex command is the only command using an actual class instead of
the interface. This causes issues when trying to decorate the search
manager.
  • Loading branch information
fnagel authored Apr 20, 2024
1 parent 4ea3670 commit 7e127de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Command/ReindexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Massive\Bundle\SearchBundle\Search\Reindex\ReindexProviderInterface;
use Massive\Bundle\SearchBundle\Search\Reindex\ReindexProviderRegistry;
use Massive\Bundle\SearchBundle\Search\Reindex\ResumeManagerInterface;
use Massive\Bundle\SearchBundle\Search\SearchManager;
use Massive\Bundle\SearchBundle\Search\SearchManagerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\FormatterHelper;
Expand Down Expand Up @@ -63,7 +62,7 @@ class ReindexCommand extends Command

public function __construct(
ResumeManagerInterface $resumeManager,
SearchManager $searchManager,
SearchManagerInterface $searchManager,
ReindexProviderRegistry $providerRegistry,
$env,
QuestionHelper $questionHelper = null
Expand Down

0 comments on commit 7e127de

Please sign in to comment.