diff --git a/docs/all_rectors_overview.md b/docs/all_rectors_overview.md index a290002d8..f2e96e319 100644 --- a/docs/all_rectors_overview.md +++ b/docs/all_rectors_overview.md @@ -1,4 +1,4 @@ -# All 107 Rectors Overview +# All 108 Rectors Overview ## `AddCodeCoverageIgnoreToMethodRectorDefinitionRector` @@ -822,6 +822,25 @@ Refactor deprecated methods from ExtensionManagementUtility.

+## `RefactorPropertiesOfTypoScriptFrontendControllerRector` + +- class: [`Ssch\TYPO3Rector\Rector\v9\v5\RefactorPropertiesOfTypoScriptFrontendControllerRector`](/src/Rector/v9/v5/RefactorPropertiesOfTypoScriptFrontendControllerRector.php) + +Refactor some properties of TypoScriptFrontendController + +```diff +-$previewBeUserUid = $GLOBALS['TSFE']->ADMCMD_preview_BEUSER_uid; +-$workspacePreview = $GLOBALS['TSFE']->workspacePreview; +-$loginAllowedInBranch = $GLOBALS['TSFE']->loginAllowedInBranch; ++use TYPO3\CMS\Core\Utility\GeneralUtility; ++use TYPO3\CMS\Core\Context\Context; ++$previewBeUserUid = GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('backend.user', 'id', 0); ++$workspacePreview = GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('workspace', 'id', 0); ++$loginAllowedInBranch = $GLOBALS['TSFE']->checkIfLoginAllowedInBranch(); +``` + +

+ ## `RefactorRemovedMarkerMethodsFromContentObjectRendererRector` - class: [`Ssch\TYPO3Rector\Rector\v8\v7\RefactorRemovedMarkerMethodsFromContentObjectRendererRector`](/src/Rector/v8/v7/RefactorRemovedMarkerMethodsFromContentObjectRendererRector.php)