Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: Adjust to subscription engine #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Classes/CatchUpHook/DocumentUriPathProjectionHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
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;
use Neos\Neos\FrontendRouting\Projection\DocumentUriPathFinder;
use Neos\RedirectHandler\NeosAdapter\Service\NodeRedirectService;

final class DocumentUriPathProjectionHook implements CatchUpHookInterface

Check failure on line 20 in Classes/CatchUpHook/DocumentUriPathProjectionHook.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Class Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHook implements unknown interface Neos\ContentRepository\Core\Projection\CatchUpHook\CatchUpHookInterface.

Check failure on line 20 in Classes/CatchUpHook/DocumentUriPathProjectionHook.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Class Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHook implements unknown interface Neos\ContentRepository\Core\Projection\CatchUpHook\CatchUpHookInterface.
{
/**
* Runtime cache to keep DocumentNodeInfos until they get removed.
Expand All @@ -31,7 +32,7 @@
) {
}

public function onBeforeCatchUp(): void
public function onBeforeCatchUp(SubscriptionStatus $subscriptionStatus): void

Check failure on line 35 in Classes/CatchUpHook/DocumentUriPathProjectionHook.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Parameter $subscriptionStatus of method Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHook::onBeforeCatchUp() has invalid type Neos\ContentRepository\Core\Subscription\SubscriptionStatus.

Check failure on line 35 in Classes/CatchUpHook/DocumentUriPathProjectionHook.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Parameter $subscriptionStatus of method Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHook::onBeforeCatchUp() has invalid type Neos\ContentRepository\Core\Subscription\SubscriptionStatus.
{
// Nothing to do here
}
Expand Down
6 changes: 3 additions & 3 deletions Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@

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;

/**
* @implements CatchUpHookFactoryInterface<DocumentUriPathFinder>
*/
final class DocumentUriPathProjectionHookFactory implements CatchUpHookFactoryInterface

Check failure on line 14 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Class Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHookFactory implements unknown interface Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryInterface.

Check failure on line 14 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.2)

PHPDoc tag @implements has invalid type Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryInterface.

Check failure on line 14 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Class Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHookFactory implements unknown interface Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryInterface.

Check failure on line 14 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.3)

PHPDoc tag @implements has invalid type Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryInterface.
{
public function __construct(
protected readonly NodeRedirectService $redirectService,
) {
}

public function build(CatchUpHookFactoryDependencies $dependencies): CatchUpHookInterface

Check failure on line 21 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Method Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHookFactory::build() has invalid return type Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookInterface.

Check failure on line 21 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Parameter $dependencies of method Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHookFactory::build() has invalid type Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryDependencies.

Check failure on line 21 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Method Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHookFactory::build() has invalid return type Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookInterface.

Check failure on line 21 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Parameter $dependencies of method Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHookFactory::build() has invalid type Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryDependencies.
{
return new DocumentUriPathProjectionHook(

Check failure on line 23 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Method Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHookFactory::build() should return Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookInterface but returns Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHook.

Check failure on line 23 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Method Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHookFactory::build() should return Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookInterface but returns Neos\RedirectHandler\NeosAdapter\CatchUpHook\DocumentUriPathProjectionHook.
$dependencies->contentRepositoryId,

Check failure on line 24 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Access to property $contentRepositoryId on an unknown class Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryDependencies.

Check failure on line 24 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Access to property $contentRepositoryId on an unknown class Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryDependencies.
$dependencies->projectionState,

Check failure on line 25 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Access to property $projectionState on an unknown class Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryDependencies.

Check failure on line 25 in Classes/CatchUpHook/DocumentUriPathProjectionHookFactory.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Access to property $projectionState on an unknown class Neos\ContentRepository\Core\Projection\CatchupHook\CatchUpHookFactoryDependencies.
$this->redirectService
);
}
Expand Down
Loading