From fd0b0bc24299505bb97b32bf9f6e15e61f809a7c Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:12:48 +0100 Subject: [PATCH] TASK: Adjust to subscription engine https://github.com/neos/neos-development-collection/pull/5321 --- Classes/CatchUpHook/DocumentUriPathProjectionHook.php | 5 +++-- .../CatchUpHook/DocumentUriPathProjectionHookFactory.php | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Classes/CatchUpHook/DocumentUriPathProjectionHook.php b/Classes/CatchUpHook/DocumentUriPathProjectionHook.php index 389962f..d721a2f 100644 --- a/Classes/CatchUpHook/DocumentUriPathProjectionHook.php +++ b/Classes/CatchUpHook/DocumentUriPathProjectionHook.php @@ -6,10 +6,11 @@ use Neos\ContentRepository\Core\Feature\NodeModification\Event\NodePropertiesWereSet; use Neos\ContentRepository\Core\Feature\NodeMove\Event\NodeAggregateWasMoved; use Neos\ContentRepository\Core\Feature\NodeRemoval\Event\NodeAggregateWasRemoved; -use Neos\ContentRepository\Core\Projection\CatchUpHookInterface; +use Neos\ContentRepository\Core\Projection\CatchUpHook\CatchUpHookInterface; use Neos\ContentRepository\Core\SharedModel\ContentRepository\ContentRepositoryId; use Neos\ContentRepository\Core\SharedModel\Node\NodeAddress; use Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId; +use Neos\ContentRepository\Core\Subscription\SubscriptionStatus; use Neos\EventStore\Model\EventEnvelope; use Neos\Neos\FrontendRouting\Exception\NodeNotFoundException; use Neos\Neos\FrontendRouting\Projection\DocumentNodeInfo; @@ -31,7 +32,7 @@ public function __construct( ) { } - public function onBeforeCatchUp(): void + public function onBeforeCatchUp(SubscriptionStatus $subscriptionStatus): void { // Nothing to do here } diff --git a/Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php b/Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php index 0a032ef..e6160b6 100644 --- a/Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php +++ b/Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php @@ -2,9 +2,9 @@ namespace Neos\RedirectHandler\NeosAdapter\CatchUpHook; -use Neos\ContentRepository\Core\Projection\CatchUpHookFactoryDependencies; -use Neos\ContentRepository\Core\Projection\CatchUpHookFactoryInterface; -use Neos\ContentRepository\Core\Projection\CatchUpHookInterface; +use Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryDependencies; +use Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryInterface; +use Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookInterface; use Neos\Neos\FrontendRouting\Projection\DocumentUriPathFinder; use Neos\RedirectHandler\NeosAdapter\Service\NodeRedirectService;