Skip to content

Commit 7e127de

Browse files
authoredApr 20, 2024··
Use search manager interface instead of actual class (#177)
Reindex command is the only command using an actual class instead of the interface. This causes issues when trying to decorate the search manager.
1 parent 4ea3670 commit 7e127de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎Command/ReindexCommand.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Massive\Bundle\SearchBundle\Search\Reindex\ReindexProviderInterface;
1717
use Massive\Bundle\SearchBundle\Search\Reindex\ReindexProviderRegistry;
1818
use Massive\Bundle\SearchBundle\Search\Reindex\ResumeManagerInterface;
19-
use Massive\Bundle\SearchBundle\Search\SearchManager;
2019
use Massive\Bundle\SearchBundle\Search\SearchManagerInterface;
2120
use Symfony\Component\Console\Command\Command;
2221
use Symfony\Component\Console\Helper\FormatterHelper;
@@ -63,7 +62,7 @@ class ReindexCommand extends Command
6362

6463
public function __construct(
6564
ResumeManagerInterface $resumeManager,
66-
SearchManager $searchManager,
65+
SearchManagerInterface $searchManager,
6766
ReindexProviderRegistry $providerRegistry,
6867
$env,
6968
QuestionHelper $questionHelper = null

0 commit comments

Comments
 (0)
Please sign in to comment.