forked from neos/neos-development-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: Overhaul ContentCacheFlusher
- Loading branch information
Showing
11 changed files
with
339 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
Neos.Neos/Classes/Fusion/Cache/FlushNodeAggregateRequest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Neos\Neos\Fusion\Cache; | ||
|
||
use Neos\ContentRepository\Core\ContentRepository; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; | ||
use Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId; | ||
use Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateIds; | ||
use Neos\ContentRepository\Core\NodeType\NodeTypeName; | ||
use Neos\ContentRepository\Core\SharedModel\ContentRepository\ContentRepositoryId; | ||
|
||
final readonly class FlushNodeAggregateRequest | ||
{ | ||
private function __construct( | ||
public ContentRepositoryId $contentRepositoryId, | ||
public WorkspaceName $workspaceName, | ||
public NodeAggregateId $nodeAggregateId, | ||
public NodeTypeName $nodeTypeName, | ||
public NodeAggregateIds $parentNodeAggregateIds, | ||
) { | ||
|
||
} | ||
|
||
public static function create( | ||
ContentRepositoryId $contentRepositoryId, | ||
WorkspaceName $workspaceName, | ||
NodeAggregateId $nodeAggregateId, | ||
NodeTypeName $nodeTypeName, | ||
NodeAggregateIds $parentNodeAggregateIds | ||
): self { | ||
return new self($contentRepositoryId, | ||
$workspaceName, | ||
$nodeAggregateId, | ||
$nodeTypeName, | ||
$parentNodeAggregateIds | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Neos\Neos\Fusion\Cache; | ||
|
||
use Neos\ContentRepository\Core\ContentRepository; | ||
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; | ||
use Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId; | ||
use Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateIds; | ||
use Neos\ContentRepository\Core\NodeType\NodeTypeName; | ||
use Neos\ContentRepository\Core\SharedModel\ContentRepository\ContentRepositoryId; | ||
|
||
final readonly class FlushWorkspaceRequest | ||
{ | ||
private function __construct( | ||
public ContentRepositoryId $contentRepositoryId, | ||
public WorkspaceName $workspaceName, | ||
) { | ||
|
||
} | ||
|
||
public static function create(ContentRepositoryId $contentRepositoryId, WorkspaceName $workspaceName): self | ||
{ | ||
return new self($contentRepositoryId, $workspaceName); | ||
} | ||
} |
Oops, something went wrong.