From 3698368b017d42288f1073d3e4b37d4a0dd9d937 Mon Sep 17 00:00:00 2001 From: Tomasz Kryszan Date: Wed, 21 Aug 2024 09:38:41 +0200 Subject: [PATCH] Used IncrementalIndexer instead of Indexer in BookmarkEventSubscriber --- .../Common/EventSubscriber/BookmarkEventSubscriber.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php b/src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php index a285af607b..e5574d5a96 100644 --- a/src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php +++ b/src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php @@ -11,18 +11,14 @@ use Ibexa\Contracts\Core\Repository\Events\Bookmark\CreateBookmarkEvent; use Ibexa\Contracts\Core\Repository\Events\Bookmark\DeleteBookmarkEvent; use Ibexa\Contracts\Core\Repository\Values\Content\Location; -use Ibexa\Core\Search\Common\Indexer; +use Ibexa\Core\Search\Common\IncrementalIndexer; use Symfony\Component\EventDispatcher\EventSubscriberInterface; final class BookmarkEventSubscriber implements EventSubscriberInterface { - /** @var \Ibexa\Core\Search\Common\Indexer&\Ibexa\Core\Search\Common\IncrementalIndexer */ - private Indexer $indexer; + private IncrementalIndexer $indexer; - /** - * @param \Ibexa\Core\Search\Common\Indexer&\Ibexa\Core\Search\Common\IncrementalIndexer $indexer - */ - public function __construct(Indexer $indexer) + public function __construct(IncrementalIndexer $indexer) { $this->indexer = $indexer; }