This rector replaces removed ContentContext calls in PHP and Fusion. For better detection of context objects all Node(Interface)s get replaced by Neos\Rector\ContentRepository90\Legacy\NodeLegacyStub. The Neos\Rector\ContentRepository90\Legacy\NodeLegacyStub get replaced at the end by Neos\ContentRepository\Core\Projection\ContentGraph\Node
This rector replaces removed ContentContext calls in PHP and Fusion. For better detection of context objects all Node(Interface)s get replaced by
Neos\Rector\ContentRepository90\Legacy\NodeLegacyStub
. TheNeos\Rector\ContentRepository90\Legacy\NodeLegacyStub
get replaced at the end byNeos\ContentRepository\Core\Projection\ContentGraph\Node
PHP
ContentContext::isInBackend
=>$this->renderingModeService->findByCurrentUser()->isEdit
ContentContext::isLive
=>!$this->renderingModeService->findByCurrentUser()->isEdit && !$this->renderingModeService->findByCurrentUser()->isPreview
ContentContext::getCurrentRenderingMode
=>$this->renderingModeService->findByCurrentUser()
ContentContext::getCurrentSiteNode
=> Warning, no replacementContentContext::getCurrentDomain
=> Warning, no replacementContentContext::getCurrentSite
=> Warning, no replacementFusion
node.context.currentDomain
=> Warning, no replacementcontext.currentSiteNode
=> Warning, no replacementFixes #31