From d737440aae48473a2611000f4ae8ffe0c5da78bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Wed, 29 May 2024 12:11:49 +0200 Subject: [PATCH] NGSTACK-836: restructure message handlers --- .../Content/CopyContentHandler.php | 2 +- .../Content/DeleteContentHandler.php | 2 +- .../Content/DeleteTranslationHandler.php | 2 +- .../Content/HideContentHandler.php | 4 +-- .../Content/PublishVersionHandler.php | 2 +- .../Content/RevealContentHandler.php | 4 +-- .../Content/UpdateContentMetadataHandler.php | 2 +- .../AssignSectionToSubtreeHandler.php | 4 +-- .../Location/CopySubtreeHandler.php | 4 +-- .../Location/CreateLocationHandler.php | 2 +- .../Location/DeleteLocationHandler.php | 2 +- .../Location/HideLocationHandler.php | 4 +-- .../Location/MoveSubtreeHandler.php | 4 +-- .../Location/SwapLocationHandler.php | 2 +- .../Location/UnhideLocationHandler.php | 4 +-- .../Location/UpdateLocationHandler.php | 2 +- .../ObjectState/SetContentStateHandler.php | 2 +- .../Section/AssignSectionHandler.php | 2 +- .../SubtreeIndexer.php | 2 +- .../Trash/RecoverHandler.php | 4 +-- .../Trash/TrashHandler.php | 2 +- .../User/AssignUserToUserGroupHandler.php | 4 +-- ...BeforeUnAssignUserFromUserGroupHandler.php | 2 +- .../User/CreateUserGroupHandler.php | 2 +- .../User/CreateUserHandler.php | 2 +- .../User/DeleteUserGroupHandler.php | 2 +- .../User/DeleteUserHandler.php | 2 +- .../User/MoveUserGroupHandler.php | 4 +-- .../User/UnAssignUserFromUserGroupHandler.php | 4 +-- .../User/UpdateUserGroupHandler.php | 2 +- .../User/UpdateUserHandler.php | 2 +- .../UserContentWithLocationIndexer.php | 2 +- .../common/asynchronous_indexing/common.yaml | 4 +-- .../common/asynchronous_indexing/content.yaml | 18 ++++++------ .../asynchronous_indexing/location.yaml | 28 +++++++++---------- .../asynchronous_indexing/object_state.yaml | 2 +- .../common/asynchronous_indexing/section.yaml | 2 +- .../common/asynchronous_indexing/trash.yaml | 6 ++-- .../common/asynchronous_indexing/user.yaml | 26 ++++++++--------- 39 files changed, 86 insertions(+), 86 deletions(-) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Content/CopyContentHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Content/DeleteContentHandler.php (93%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Content/DeleteTranslationHandler.php (98%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Content/HideContentHandler.php (88%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Content/PublishVersionHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Content/RevealContentHandler.php (89%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Content/UpdateContentMetadataHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/AssignSectionToSubtreeHandler.php (84%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/CopySubtreeHandler.php (83%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/CreateLocationHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/DeleteLocationHandler.php (91%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/HideLocationHandler.php (83%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/MoveSubtreeHandler.php (83%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/SwapLocationHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/UnhideLocationHandler.php (83%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Location/UpdateLocationHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/ObjectState/SetContentStateHandler.php (96%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Section/AssignSectionHandler.php (96%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/SubtreeIndexer.php (98%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Trash/RecoverHandler.php (83%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/Trash/TrashHandler.php (93%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/AssignUserToUserGroupHandler.php (84%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/BeforeUnAssignUserFromUserGroupHandler.php (94%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/CreateUserGroupHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/CreateUserHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/DeleteUserGroupHandler.php (93%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/DeleteUserHandler.php (93%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/MoveUserGroupHandler.php (93%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/UnAssignUserFromUserGroupHandler.php (84%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/UpdateUserGroupHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/User/UpdateUserHandler.php (97%) rename lib/Core/Search/Common/Messenger/MessageHandler/Search/{ => AsynchronousIndexing}/UserContentWithLocationIndexer.php (97%) diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/CopyContentHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/CopyContentHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/CopyContentHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/CopyContentHandler.php index 33dc0a93..c6427eee 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/CopyContentHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/CopyContentHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/DeleteContentHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/DeleteContentHandler.php similarity index 93% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/DeleteContentHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/DeleteContentHandler.php index 399f53c2..b4b8aecd 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/DeleteContentHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/DeleteContentHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content; use Ibexa\Contracts\Core\Search\Handler as SearchHandler; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Content\DeleteContent; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/DeleteTranslationHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/DeleteTranslationHandler.php similarity index 98% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/DeleteTranslationHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/DeleteTranslationHandler.php index 62f52a24..299b6110 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/DeleteTranslationHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/DeleteTranslationHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content; use Ibexa\Contracts\Core\Persistence\Content\ContentInfo; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/HideContentHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/HideContentHandler.php similarity index 88% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/HideContentHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/HideContentHandler.php index 6489a5e1..8045dfd8 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/HideContentHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/HideContentHandler.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Content\HideContent; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; final class HideContentHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/PublishVersionHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/PublishVersionHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/PublishVersionHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/PublishVersionHandler.php index 474afd75..d591a408 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/PublishVersionHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/PublishVersionHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/RevealContentHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/RevealContentHandler.php similarity index 89% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/RevealContentHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/RevealContentHandler.php index a6fe8a22..fa32eaf2 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/RevealContentHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/RevealContentHandler.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Content\RevealContent; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; final class RevealContentHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/UpdateContentMetadataHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/UpdateContentMetadataHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/UpdateContentMetadataHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/UpdateContentMetadataHandler.php index 8768fe5d..dee53f23 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Content/UpdateContentMetadataHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Content/UpdateContentMetadataHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content; use Ibexa\Contracts\Core\Persistence\Content\ContentInfo; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/AssignSectionToSubtreeHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/AssignSectionToSubtreeHandler.php similarity index 84% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/AssignSectionToSubtreeHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/AssignSectionToSubtreeHandler.php index fccf2768..edca93ec 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/AssignSectionToSubtreeHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/AssignSectionToSubtreeHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Location\AssignSectionToSubtree; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; final class AssignSectionToSubtreeHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/CopySubtreeHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/CopySubtreeHandler.php similarity index 83% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/CopySubtreeHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/CopySubtreeHandler.php index 243699ff..f0de28b4 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/CopySubtreeHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/CopySubtreeHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Location\CopySubtree; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; final class CopySubtreeHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/CreateLocationHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/CreateLocationHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/CreateLocationHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/CreateLocationHandler.php index 47e01eaa..061fc5e0 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/CreateLocationHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/CreateLocationHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/DeleteLocationHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/DeleteLocationHandler.php similarity index 91% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/DeleteLocationHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/DeleteLocationHandler.php index c803f5a3..bab2e58f 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/DeleteLocationHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/DeleteLocationHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Ibexa\Contracts\Core\Search\Handler as SearchHandler; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Location\DeleteLocation; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/HideLocationHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/HideLocationHandler.php similarity index 83% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/HideLocationHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/HideLocationHandler.php index 1fece102..cfee4244 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/HideLocationHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/HideLocationHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Location\HideLocation; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; final class HideLocationHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/MoveSubtreeHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/MoveSubtreeHandler.php similarity index 83% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/MoveSubtreeHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/MoveSubtreeHandler.php index 5f9b346f..f0c6bd72 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/MoveSubtreeHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/MoveSubtreeHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Location\MoveSubtree; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; final class MoveSubtreeHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/SwapLocationHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/SwapLocationHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/SwapLocationHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/SwapLocationHandler.php index 0e6e6e15..77df1bf1 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/SwapLocationHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/SwapLocationHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/UnhideLocationHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/UnhideLocationHandler.php similarity index 83% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/UnhideLocationHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/UnhideLocationHandler.php index 73605ba5..b5549b3d 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/UnhideLocationHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/UnhideLocationHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Location\UnhideLocation; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; final class UnhideLocationHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/UpdateLocationHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/UpdateLocationHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/UpdateLocationHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/UpdateLocationHandler.php index 503fb993..f93668ae 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Location/UpdateLocationHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Location/UpdateLocationHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/ObjectState/SetContentStateHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/ObjectState/SetContentStateHandler.php similarity index 96% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/ObjectState/SetContentStateHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/ObjectState/SetContentStateHandler.php index 17f077cb..df5f873f 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/ObjectState/SetContentStateHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/ObjectState/SetContentStateHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ObjectState; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\ObjectState; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Section/AssignSectionHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Section/AssignSectionHandler.php similarity index 96% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Section/AssignSectionHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Section/AssignSectionHandler.php index 235e1ae6..b3ee64e7 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Section/AssignSectionHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Section/AssignSectionHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Section; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Section; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/SubtreeIndexer.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/SubtreeIndexer.php similarity index 98% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/SubtreeIndexer.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/SubtreeIndexer.php index 960f1244..ea416bc7 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/SubtreeIndexer.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/SubtreeIndexer.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Trash/RecoverHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Trash/RecoverHandler.php similarity index 83% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Trash/RecoverHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Trash/RecoverHandler.php index d79aa1df..cc885487 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Trash/RecoverHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Trash/RecoverHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Trash; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Trash; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Trash\Recover; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; final class RecoverHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Trash/TrashHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Trash/TrashHandler.php similarity index 93% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/Trash/TrashHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Trash/TrashHandler.php index aea98080..89beb61b 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/Trash/TrashHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/Trash/TrashHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Trash; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Trash; use Ibexa\Contracts\Core\Search\Handler as SearchHandler; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\Trash\Trash; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/AssignUserToUserGroupHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/AssignUserToUserGroupHandler.php similarity index 84% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/AssignUserToUserGroupHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/AssignUserToUserGroupHandler.php index 0e88d390..9d1f3003 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/AssignUserToUserGroupHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/AssignUserToUserGroupHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\User\AssignUserToUserGroup; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\UserContentWithLocationIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\UserContentWithLocationIndexer; final class AssignUserToUserGroupHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/BeforeUnAssignUserFromUserGroupHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/BeforeUnAssignUserFromUserGroupHandler.php similarity index 94% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/BeforeUnAssignUserFromUserGroupHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/BeforeUnAssignUserFromUserGroupHandler.php index deb4320a..a09491df 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/BeforeUnAssignUserFromUserGroupHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/BeforeUnAssignUserFromUserGroupHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; use Ibexa\Contracts\Core\Search\Handler as SearchHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/CreateUserGroupHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/CreateUserGroupHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/CreateUserGroupHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/CreateUserGroupHandler.php index 2f33db78..f930b500 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/CreateUserGroupHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/CreateUserGroupHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/CreateUserHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/CreateUserHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/CreateUserHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/CreateUserHandler.php index 0af00545..5eef6204 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/CreateUserHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/CreateUserHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/DeleteUserGroupHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/DeleteUserGroupHandler.php similarity index 93% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/DeleteUserGroupHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/DeleteUserGroupHandler.php index 765af82c..344ba767 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/DeleteUserGroupHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/DeleteUserGroupHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Ibexa\Contracts\Core\Search\Handler as SearchHandler; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\User\DeleteUserGroup; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/DeleteUserHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/DeleteUserHandler.php similarity index 93% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/DeleteUserHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/DeleteUserHandler.php index 366b84a7..aaec018d 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/DeleteUserHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/DeleteUserHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Ibexa\Contracts\Core\Search\Handler as SearchHandler; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\User\DeleteUser; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/MoveUserGroupHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/MoveUserGroupHandler.php similarity index 93% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/MoveUserGroupHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/MoveUserGroupHandler.php index e4fafa54..34e81888 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/MoveUserGroupHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/MoveUserGroupHandler.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\User\MoveUserGroup; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UnAssignUserFromUserGroupHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UnAssignUserFromUserGroupHandler.php similarity index 84% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UnAssignUserFromUserGroupHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UnAssignUserFromUserGroupHandler.php index 9c6eca0c..410fe233 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UnAssignUserFromUserGroupHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UnAssignUserFromUserGroupHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\User\UnAssignUserFromUserGroup; -use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\UserContentWithLocationIndexer; +use Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\UserContentWithLocationIndexer; final class UnAssignUserFromUserGroupHandler { diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UpdateUserGroupHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UpdateUserGroupHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UpdateUserGroupHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UpdateUserGroupHandler.php index 97825e65..e10e5c5f 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UpdateUserGroupHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UpdateUserGroupHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UpdateUserHandler.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UpdateUserHandler.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UpdateUserHandler.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UpdateUserHandler.php index e64da2f2..06368606 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/User/UpdateUserHandler.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/User/UpdateUserHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Core/Search/Common/Messenger/MessageHandler/Search/UserContentWithLocationIndexer.php b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/UserContentWithLocationIndexer.php similarity index 97% rename from lib/Core/Search/Common/Messenger/MessageHandler/Search/UserContentWithLocationIndexer.php rename to lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/UserContentWithLocationIndexer.php index 01bbd01b..1df88a27 100644 --- a/lib/Core/Search/Common/Messenger/MessageHandler/Search/UserContentWithLocationIndexer.php +++ b/lib/Core/Search/Common/Messenger/MessageHandler/Search/AsynchronousIndexing/UserContentWithLocationIndexer.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search; +namespace Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing; use Ibexa\Contracts\Core\Persistence\Content\Handler as ContentHandler; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler as LocationHandler; diff --git a/lib/Resources/config/search/common/asynchronous_indexing/common.yaml b/lib/Resources/config/search/common/asynchronous_indexing/common.yaml index b02b4075..a3182174 100644 --- a/lib/Resources/config/search/common/asynchronous_indexing/common.yaml +++ b/lib/Resources/config/search/common/asynchronous_indexing/common.yaml @@ -1,5 +1,5 @@ services: - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -8,7 +8,7 @@ services: tags: - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\UserContentWithLocationIndexer: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\UserContentWithLocationIndexer: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' diff --git a/lib/Resources/config/search/common/asynchronous_indexing/content.yaml b/lib/Resources/config/search/common/asynchronous_indexing/content.yaml index ea303fb8..437907f0 100644 --- a/lib/Resources/config/search/common/asynchronous_indexing/content.yaml +++ b/lib/Resources/config/search/common/asynchronous_indexing/content.yaml @@ -1,5 +1,5 @@ services: - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content\CopyContentHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content\CopyContentHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -9,13 +9,13 @@ services: - { name: messenger.message_handler } - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content\DeleteContentHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content\DeleteContentHandler: arguments: - '@ibexa.spi.search' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content\DeleteTranslationHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content\DeleteTranslationHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -25,14 +25,14 @@ services: - { name: messenger.message_handler } - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content\HideContentHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content\HideContentHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content\PublishVersionHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content\PublishVersionHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -42,14 +42,14 @@ services: - { name: messenger.message_handler } - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content\RevealContentHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content\RevealContentHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Content\UpdateContentMetadataHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Content\UpdateContentMetadataHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' diff --git a/lib/Resources/config/search/common/asynchronous_indexing/location.yaml b/lib/Resources/config/search/common/asynchronous_indexing/location.yaml index 287eb478..6aef2ddd 100644 --- a/lib/Resources/config/search/common/asynchronous_indexing/location.yaml +++ b/lib/Resources/config/search/common/asynchronous_indexing/location.yaml @@ -1,17 +1,17 @@ services: - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\AssignSectionToSubtreeHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\AssignSectionToSubtreeHandler: arguments: - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\CopySubtreeHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\CopySubtreeHandler: arguments: - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\CreateLocationHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\CreateLocationHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -21,25 +21,25 @@ services: - { name: messenger.message_handler } - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\DeleteLocationHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\DeleteLocationHandler: arguments: - '@ibexa.spi.search' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\HideLocationHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\HideLocationHandler: arguments: - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\MoveSubtreeHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\MoveSubtreeHandler: arguments: - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\SwapLocationHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\SwapLocationHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -49,14 +49,14 @@ services: - { name: messenger.message_handler } - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\UnhideLocationHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\UnhideLocationHandler: arguments: - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' - '@ibexa.spi.search' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Location\UpdateLocationHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Location\UpdateLocationHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' diff --git a/lib/Resources/config/search/common/asynchronous_indexing/object_state.yaml b/lib/Resources/config/search/common/asynchronous_indexing/object_state.yaml index b0b32e7c..fd73ad00 100644 --- a/lib/Resources/config/search/common/asynchronous_indexing/object_state.yaml +++ b/lib/Resources/config/search/common/asynchronous_indexing/object_state.yaml @@ -1,5 +1,5 @@ services: - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\ObjectState\SetContentStateHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\ObjectState\SetContentStateHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' diff --git a/lib/Resources/config/search/common/asynchronous_indexing/section.yaml b/lib/Resources/config/search/common/asynchronous_indexing/section.yaml index 8a7c330e..af971a52 100644 --- a/lib/Resources/config/search/common/asynchronous_indexing/section.yaml +++ b/lib/Resources/config/search/common/asynchronous_indexing/section.yaml @@ -1,5 +1,5 @@ services: - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Section\AssignSectionHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Section\AssignSectionHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@ibexa.spi.search' diff --git a/lib/Resources/config/search/common/asynchronous_indexing/trash.yaml b/lib/Resources/config/search/common/asynchronous_indexing/trash.yaml index fc3d7813..15f22452 100644 --- a/lib/Resources/config/search/common/asynchronous_indexing/trash.yaml +++ b/lib/Resources/config/search/common/asynchronous_indexing/trash.yaml @@ -1,12 +1,12 @@ services: - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Trash\RecoverHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Trash\RecoverHandler: arguments: - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' - '@ibexa.spi.search' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\Trash\TrashHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\Trash\TrashHandler: arguments: - '@ibexa.spi.search' tags: diff --git a/lib/Resources/config/search/common/asynchronous_indexing/user.yaml b/lib/Resources/config/search/common/asynchronous_indexing/user.yaml index ca054664..6b2a095c 100644 --- a/lib/Resources/config/search/common/asynchronous_indexing/user.yaml +++ b/lib/Resources/config/search/common/asynchronous_indexing/user.yaml @@ -1,18 +1,18 @@ services: - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\AssignUserToUserGroupHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\AssignUserToUserGroupHandler: arguments: - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\UserContentWithLocationIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\UserContentWithLocationIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\BeforeUnAssignUserFromUserGroupHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\BeforeUnAssignUserFromUserGroupHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' - '@ibexa.spi.search' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\CreateUserGroupHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\CreateUserGroupHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -21,7 +21,7 @@ services: - { name: messenger.message_handler } - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\CreateUserHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\CreateUserHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -31,32 +31,32 @@ services: - { name: messenger.message_handler } - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\DeleteUserGroupHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\DeleteUserGroupHandler: arguments: - '@ibexa.spi.search' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\DeleteUserHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\DeleteUserHandler: arguments: - '@ibexa.spi.search' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\MoveUserGroupHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\MoveUserGroupHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\SubtreeIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\SubtreeIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\UnAssignUserFromUserGroupHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\UnAssignUserFromUserGroupHandler: arguments: - - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\UserContentWithLocationIndexer' + - '@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\UserContentWithLocationIndexer' tags: - { name: messenger.message_handler } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\UpdateUserGroupHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\UpdateUserGroupHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler' @@ -66,7 +66,7 @@ services: - { name: messenger.message_handler } - { name: monolog.logger, channel: ngsearchextra } - Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\UpdateUserHandler: + Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\AsynchronousIndexing\User\UpdateUserHandler: arguments: - '@Ibexa\Contracts\Core\Persistence\Content\Handler' - '@Ibexa\Contracts\Core\Persistence\Content\Location\Handler'