Skip to content

Commit

Permalink
Merge pull request #54 from neos/task/fixNeosContentRepositoryUtility
Browse files Browse the repository at this point in the history
TASK: Correctly migrate Neos\ContentRepository\Utility
  • Loading branch information
kdambekalns authored Jun 13, 2024
2 parents 599867b + c43e3dc commit 2d9aedc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions config/set/contentrepository-90.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\Rector\Name\RenameClassRector;
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename;
use Rector\Renaming\ValueObject\RenameStaticMethod;
use Rector\Transform\Rector\MethodCall\MethodCallToPropertyFetchRector;
use Rector\Transform\ValueObject\MethodCallToPropertyFetch;
use Neos\Rector\ContentRepository90\Rules\FusionNodeHiddenAfterDateTimeRector;
Expand Down Expand Up @@ -96,8 +98,6 @@
'Neos\ContentRepository\Domain\Model\NodeType' => \Neos\ContentRepository\Core\NodeType\NodeType::class,
'Neos\ContentRepository\Domain\Service\NodeTypeManager' => \Neos\ContentRepository\Core\NodeType\NodeTypeManager::class,

'Neos\ContentRepository\Utility' => \Neos\ContentRepositoryRegistry\Utility::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,
Expand Down Expand Up @@ -394,6 +394,13 @@
new FusionPrototypeNameAddComment('Neos.Fusion:Attributes', 'TODO 9.0 migration: Neos.Fusion:Attributes has been removed without a replacement. You need to replace it by the property attributes in Neos.Fusion:Tag')
]);

$rectorConfig->ruleWithConfiguration(RenameStaticMethodRector::class, [new RenameStaticMethod(
\Neos\ContentRepository\Utility::class,
'renderValidNodeName',
\Neos\ContentRepository\Core\SharedModel\Node\NodeName::class,
'fromString'
)]);

/**
* SPECIAL rules
*/
Expand Down

0 comments on commit 2d9aedc

Please sign in to comment.