Skip to content

Commit

Permalink
Merge pull request #5295 from mhsdesign/task/remove-deprecations-of-b…
Browse files Browse the repository at this point in the history
…eta-14

TASK: Remove deprecations of beta 14
  • Loading branch information
mhsdesign authored Oct 23, 2024
2 parents f7aaa60 + 65218bd commit d30376d
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 310 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName;

/**
* @api events are the persistence-API of the content repository
* @deprecated this is no longer logged, instead an exception is thrown
* @see Neos\ContentRepository\Core\Feature\WorkspaceRebase\Exception\WorkspaceRebaseFailed
* @deprecated This event will never be emitted, and it is ignored in the core projections. This implementation is just kept for backwards-compatibility
* instead an exception is thrown: {@see \Neos\ContentRepository\Core\Feature\WorkspaceRebase\Exception\WorkspaceRebaseFailed}
* @internal
*/
final readonly class WorkspaceRebaseFailed implements EventInterface, EmbedsWorkspaceName
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
*/
final readonly class NodePath implements \JsonSerializable
{
/**
* @deprecated use {@see self::serializeToString()} instead
*/
public string $value;

/**
* @var array<NodeName>
*/
Expand All @@ -51,7 +46,6 @@
private function __construct(NodeName ...$nodeNames)
{
$this->nodeNames = $nodeNames;
$this->value = $this->serializeToString();
}

public static function forRoot(): self
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion Neos.Neos/Classes/Domain/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @Flow\Scope("prototype")
* @api
*/
class User extends Person implements UserInterface
class User extends Person
{
/**
* Preferences of this user
Expand Down
30 changes: 0 additions & 30 deletions Neos.Neos/Classes/Domain/Model/UserInterface.php

This file was deleted.

13 changes: 0 additions & 13 deletions Neos.Neos/Classes/Fusion/Helper/NodeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,12 @@
use Neos\Neos\Domain\NodeLabel\NodeLabelGeneratorInterface;
use Neos\Neos\Domain\Service\NodeTypeNameFactory;
use Neos\Neos\Presentation\VisualNodePath;
use Neos\Neos\Utility\NodeTypeWithFallbackProvider;

/**
* Eel helper for ContentRepository Nodes
*/
class NodeHelper implements ProtectedContextAwareInterface
{
use NodeTypeWithFallbackProvider {
getNodeType as legacyGetNodeTypeWithFallback;
}

#[Flow\Inject]
protected ContentRepositoryRegistry $contentRepositoryRegistry;

Expand Down Expand Up @@ -120,14 +115,6 @@ public function isNodeTypeExistent(Node $node): bool
return $contentRepository->getNodeTypeManager()->hasNodeType($node->nodeTypeName);
}

/**
* @deprecated with 9.0.0-beta14 please use Neos.Node.nodeType() instead and dont rely on the fallback behaviour
*/
public function getNodeType(Node $node): NodeType
{
return $this->legacyGetNodeTypeWithFallback($node);
}

/**
* @internal experimental API without documentation and clear use-case
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Feature: Tests for the "Neos.Neos:ContentCollection" Fusion prototype
include: resource://Neos.Neos/Private/Fusion/Root.fusion
prototype(Neos.Neos:Test.ContentType) < prototype(Neos.Fusion:Value) {
value = ${q(node).id() + ' (' + node.nodeTypeName.value + ') '}
value = ${node.aggregateId + ' (' + node.nodeTypeName.value + ') '}
}
test = Neos.Neos:ContentCollection {
Expand Down
2 changes: 1 addition & 1 deletion Neos.Neos/Tests/Behavior/Features/Fusion/FlowQuery.feature
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Feature: Tests for the "Neos.ContentRepository" Flow Query methods.
renderer = Neos.Fusion:Loop {
items = ${props.nodes}
itemName = 'node'
itemRenderer = ${q(node).id()}
itemRenderer = ${node.aggregateId}
@glue = ','
}
}
Expand Down
2 changes: 1 addition & 1 deletion Neos.Neos/Tests/Behavior/Features/Fusion/Menu.feature
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Feature: Tests for the "Neos.Neos:Menu" and related Fusion prototypes
renderer = Neos.Fusion:Loop {
items = ${props.items}
itemRenderer = afx`
{q(item.node).id()}<Neos.Neos:Test.Menu.ItemStateIndicator state={item.state.value} /> ({item.menuLevel}){String.chr(10)}
{item.node.aggregateId}<Neos.Neos:Test.Menu.ItemStateIndicator state={item.state.value} /> ({item.menuLevel}){String.chr(10)}
<Neos.Neos:Test.Menu items={item.subItems} @if={item.subItems} />
`
}
Expand Down

0 comments on commit d30376d

Please sign in to comment.