- protected $entityRepo;
- protected $viewService;
- protected $searchService;
-
- /**
- * SearchController constructor.
- * @param EntityRepo $entityRepo
- * @param ViewService $viewService
- * @param SearchService $searchService
- */
- public function __construct(EntityRepo $entityRepo, ViewService $viewService, SearchService $searchService)
- {
- $this->entityRepo = $entityRepo;
- $this->viewService = $viewService;
- $this->searchService = $searchService;
- parent::__construct();
+ protected $searchRunner;
+ protected $entityContextManager;
+
+ public function __construct(
+ SearchRunner $searchRunner,
+ ShelfContext $entityContextManager
+ ) {
+ $this->searchRunner = $searchRunner;
+ $this->entityContextManager = $entityContextManager;