Skip to content

Commit

Permalink
Use search manager interface instead of actual class
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 committed Apr 19, 2024
1 parent 4ea3670 commit dd74fa2
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 dd74fa2

Please sign in to comment.