neos / rector

Neos Rector Recipes for code migrations
6 stars 4 forks source link

`ContentContext::getCurrentRenderingMode` to `RenderingModeService::findByCurrentUser` #31

Closed dlubitz closed 10 months ago

dlubitz commented 10 months ago
- $renderingMode = $context->getCurrentRenderingMode();
+ $renderingMode = $this->renderingModeService->findByCurrentUser();
mhsdesign commented 10 months ago

Hmm the ContentContext was initially marked as internal (at least $node->getContext() declared it.

I would rather focus on more critical things like the Node::* methods ;)

dlubitz commented 10 months ago

I would rather focus on more critical things like the Node::* methods ;)

Sure, can you provide an issue with the regarding methods and their replacements?