Skip to content

Commit

Permalink
Generate documentation
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub Actions <actions@github.com>
  • Loading branch information
sabbelasichon authored and actions-user committed Nov 16, 2020
1 parent cd43c4f commit 91447da
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/all_rectors_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# All 107 Rectors Overview
# All 108 Rectors Overview

## `AddCodeCoverageIgnoreToMethodRectorDefinitionRector`

Expand Down Expand Up @@ -822,6 +822,25 @@ Refactor deprecated methods from ExtensionManagementUtility.

<br><br>

## `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();
```

<br><br>

## `RefactorRemovedMarkerMethodsFromContentObjectRendererRector`

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

0 comments on commit 91447da

Please sign in to comment.