Skip to content

Commit aaa1798

Browse files
committed
BUGFIX: Remove coupling with the Elastic Adapter
1 parent 404e731 commit aaa1798

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Classes/Controller/SuggestController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ class SuggestController extends ActionController
2424
use CreateContentContextTrait;
2525

2626
/**
27-
* @Flow\Inject
28-
* @var \Flowpack\ElasticSearch\ContentRepositoryAdaptor\ElasticSearchClient
27+
* @var ElasticSearchClient
2928
*/
3029
protected $elasticSearchClient;
3130

3231
/**
33-
* @Flow\Inject
3432
* @var ElasticSearchQueryBuilder
3533
*/
3634
protected $elasticSearchQueryBuilder;
@@ -52,6 +50,7 @@ public function initializeObject()
5250
{
5351
if ($this->objectManager->isRegistered(ElasticSearchClient::class)) {
5452
$this->elasticSearchClient = $this->objectManager->get(ElasticSearchClient::class);
53+
$this->elasticSearchQueryBuilder = $this->objectManager->get(ElasticSearchQueryBuilder::class);
5554
}
5655
}
5756

0 commit comments

Comments
 (0)