From 91447da32feeaf19082fe71679c5d33dd022e0d6 Mon Sep 17 00:00:00 2001 From: sabbelasichon Date: Mon, 16 Nov 2020 19:55:38 +0000 Subject: [PATCH] Generate documentation Signed-off-by: GitHub Actions --- docs/all_rectors_overview.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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)