Skip to content

Commit

Permalink
Merge pull request #70 from neos/bugfix-class-name
Browse files Browse the repository at this point in the history
BUGFIX Use ::class constant for class names
  • Loading branch information
dlubitz authored Jun 17, 2024
2 parents 21e00c7 + af654a3 commit 854895a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions config/set/contentrepository-90.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,24 +86,24 @@


$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
'Neos\\ContentRepository\\\Domain\\Model\\Node' => NodeLegacyStub::class,
'Neos\\ContentRepository\\Domain\\Model\\NodeInterface' => NodeLegacyStub::class,
'Neos\\ContentRepository\\Domain\\Projection\\Content\\NodeInterface' => NodeLegacyStub::class,
'Neos\\ContentRepository\\Domain\\Projection\\Content\\TraversableNodeInterface' => NodeLegacyStub::class,
'Neos\\ContentRepository\\Domain\\Projection\\Content\\TraversableNodes' => \Neos\ContentRepository\Core\Projection\ContentGraph\Nodes::class,

'Neos\ContentRepository\Domain\Service\Context' => LegacyContextStub::class,
'Neos\Neos\Domain\Service\ContentContext' => LegacyContextStub::class,

'Neos\ContentRepository\Domain\Model\NodeType' => \Neos\ContentRepository\Core\NodeType\NodeType::class,
'Neos\ContentRepository\Domain\Service\NodeTypeManager' => \Neos\ContentRepository\Core\NodeType\NodeTypeManager::class,

'Neos\ContentRepository\Domain\Model\Workspace' => \Neos\ContentRepository\Core\Projection\Workspace\Workspace::class,
'Neos\\ContentRepository\\Domain\\NodeAggregate\\NodeAggregateIdentifier' => \Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId::class,
'Neos\\ContentRepository\\Domain\\NodeAggregate\\NodeName' => \Neos\ContentRepository\Core\SharedModel\Node\NodeName::class,
'Neos\\ContentRepository\\Domain\\NodeType\\NodeTypeName' => \Neos\ContentRepository\Core\NodeType\NodeTypeName::class,
'Neos\\ContentRepository\\Domain\\Projection\\Content\\PropertyCollectionInterface' => \Neos\ContentRepository\Core\Projection\ContentGraph\PropertyCollection::class,
'Neos\\ContentRepository\\Domain\\Model\\ArrayPropertyCollection' => \Neos\ContentRepository\Core\Projection\ContentGraph\PropertyCollection::class,
\Neos\ContentRepository\Domain\Model\Node::class => NodeLegacyStub::class,
\Neos\ContentRepository\Domain\Model\NodeInterface::class => NodeLegacyStub::class,
\Neos\ContentRepository\Domain\Projection\Content\NodeInterface::class => NodeLegacyStub::class,
\Neos\ContentRepository\Domain\Projection\Content\TraversableNodeInterface::class => NodeLegacyStub::class,
\Neos\ContentRepository\Domain\Projection\Content\TraversableNodes::class => \Neos\ContentRepository\Core\Projection\ContentGraph\Nodes::class,

\Neos\ContentRepository\Domain\Service\Context::class => LegacyContextStub::class,
\Neos\Neos\Domain\Service\ContentContext::class => LegacyContextStub::class,

\Neos\ContentRepository\Domain\Model\NodeType::class => \Neos\ContentRepository\Core\NodeType\NodeType::class,
\Neos\ContentRepository\Domain\Service\NodeTypeManager::class => \Neos\ContentRepository\Core\NodeType\NodeTypeManager::class,

\Neos\ContentRepository\Domain\Model\Workspace::class => \Neos\ContentRepository\Core\Projection\Workspace\Workspace::class,
\Neos\ContentRepository\Domain\NodeAggregate\NodeAggregateIdentifier::class => \Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId::class,
\Neos\ContentRepository\Domain\NodeAggregate\NodeName::class => \Neos\ContentRepository\Core\SharedModel\Node\NodeName::class,
\Neos\ContentRepository\Domain\NodeType\NodeTypeName::class => \Neos\ContentRepository\Core\NodeType\NodeTypeName::class,
\Neos\ContentRepository\Domain\Projection\Content\PropertyCollectionInterface::class => \Neos\ContentRepository\Core\Projection\ContentGraph\PropertyCollection::class,
\Neos\ContentRepository\Domain\Model\ArrayPropertyCollection::class => \Neos\ContentRepository\Core\Projection\ContentGraph\PropertyCollection::class,
]);

$rectorConfig->ruleWithConfiguration(FusionReplacePrototypeNameRector::class, [
Expand Down

0 comments on commit 854895a

Please sign in to comment.