Skip to content

Commit

Permalink
TASK: Use new NeosSubtreeTag::removed() instead of temporary stub
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Mar 5, 2025
1 parent f6a5157 commit 78e6627
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Neos\ContentRepository\Core\Feature\NodeVariation\Event\NodeSpecializationVariantWasCreated;
use Neos\ContentRepository\Core\Feature\RootNodeCreation\Event\RootNodeAggregateDimensionsWereUpdated;
use Neos\ContentRepository\Core\Feature\RootNodeCreation\Event\RootNodeAggregateWithNodeWasCreated;
use Neos\ContentRepository\Core\Feature\SubtreeTagging\Dto\SubtreeTag;
use Neos\ContentRepository\Core\Feature\SubtreeTagging\Event\SubtreeWasTagged;
use Neos\ContentRepository\Core\Feature\SubtreeTagging\Event\SubtreeWasUntagged;
use Neos\ContentRepository\Core\Infrastructure\DbalSchemaDiff;
Expand All @@ -35,6 +34,7 @@
use Neos\ContentRepository\Core\SharedModel\Node\PropertyName;
use Neos\EventStore\Model\EventEnvelope;
use Neos\Neos\Domain\Model\SiteNodeName;
use Neos\Neos\Domain\Service\NeosSubtreeTag;
use Neos\Neos\FrontendRouting\Exception\NodeNotFoundException;

/**
Expand Down Expand Up @@ -418,7 +418,7 @@ private function copyVariants(

private function whenSubtreeWasTagged(SubtreeWasTagged $event): void
{
if (!$event->workspaceName->isLive() || !($event->tag === SubtreeTag::disabled() || $event->tag === SubtreeTag::removed())) {
if (!$event->workspaceName->isLive() || !($event->tag === NeosSubtreeTag::disabled() || $event->tag === NeosSubtreeTag::removed())) {
return;
}
foreach ($event->affectedDimensionSpacePoints as $dimensionSpacePoint) {
Expand Down Expand Up @@ -446,7 +446,7 @@ private function whenSubtreeWasTagged(SubtreeWasTagged $event): void

private function whenSubtreeWasUntagged(SubtreeWasUntagged $event): void
{
if (!$event->workspaceName->isLive() || !($event->tag === SubtreeTag::disabled() || $event->tag === SubtreeTag::removed())) {
if (!$event->workspaceName->isLive() || !($event->tag === NeosSubtreeTag::disabled() || $event->tag === NeosSubtreeTag::removed())) {
return;
}

Expand Down

0 comments on commit 78e6627

Please sign in to comment.