Skip to content

Commit 0784d2a

Browse files
dfeyerkdambekalns
authored andcommitted
BUGFIX: Remove coupling with the Elastic Adapter
1 parent 41cbab9 commit 0784d2a

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
@@ -12,15 +12,13 @@
1212
*/
1313

1414
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\ElasticSearchClient;
15-
use Neos\Flow\Annotations as Flow;
1615
use Neos\Flow\Mvc\Controller\ActionController;
1716
use Neos\Flow\Mvc\View\JsonView;
1817

1918
class SuggestController extends ActionController
2019
{
2120
/**
22-
* @Flow\Inject
23-
* @var \Flowpack\ElasticSearch\ContentRepositoryAdaptor\ElasticSearchClient
21+
* @var ElasticSearchClient
2422
*/
2523
protected $elasticSearchClient;
2624

@@ -49,6 +47,7 @@ public function initializeObject()
4947
* @param string $term
5048
*
5149
* @return void
50+
* @throws \Flowpack\ElasticSearch\Exception
5251
*/
5352
public function indexAction($term)
5453
{

0 commit comments

Comments
 (0)