[TASK] Remove static method variables
Static method variables are even more pita than static class variables, especially if their state is created from db rows or path information: It is nearly impossible to get rid of this state at a later point again, even reflection does not help here. The patch abandons all 'static $foo' method variables from the system, using these strategies: * Remove some entirely which were used as first level cache and only cache-away simple non db related code structures. * Switch some to use cache framework cache_runtime instead which can be evicted easily. * Use class properties in some cases instead. Change-Id: Ic699846a2c6ec661ee1124ace50df1aa04a1954b Resolves: #85206 Releases: master Reviewed-on: https://review.typo3.org/57167 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php 4 additions, 4 deletions...sysext/backend/Classes/Form/Utility/FormEngineUtility.php
- typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php 8 additions, 3 deletionstypo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 15 additions, 15 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php 9 additions, 0 deletions...d/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php
- typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php 33 additions, 0 deletions...sext/backend/Tests/Unit/Form/InlineStackProcessorTest.php
- typo3/sysext/backend/Tests/Unit/Utility/Fixtures/ProcessedValueForGroupWithMultipleAllowedTablesFixture.php 14 additions, 10 deletions...rocessedValueForGroupWithMultipleAllowedTablesFixture.php
- typo3/sysext/backend/Tests/Unit/Utility/Fixtures/ProcessedValueForGroupWithOneAllowedTableFixture.php 14 additions, 10 deletions...ures/ProcessedValueForGroupWithOneAllowedTableFixture.php
- typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php 3 additions, 1 deletion...core/Classes/Authentication/BackendUserAuthentication.php
- typo3/sysext/core/Classes/Resource/OnlineMedia/Processing/PreviewProcessing.php 2 additions, 5 deletions...ses/Resource/OnlineMedia/Processing/PreviewProcessing.php
- typo3/sysext/core/Classes/Resource/Processing/LocalImageProcessor.php 2 additions, 7 deletions.../core/Classes/Resource/Processing/LocalImageProcessor.php
- typo3/sysext/core/Classes/Resource/ResourceStorage.php 5 additions, 8 deletionstypo3/sysext/core/Classes/Resource/ResourceStorage.php
- typo3/sysext/core/Classes/Utility/GeneralUtility.php 7 additions, 8 deletionstypo3/sysext/core/Classes/Utility/GeneralUtility.php
- typo3/sysext/core/Classes/Utility/PathUtility.php 1 addition, 7 deletionstypo3/sysext/core/Classes/Utility/PathUtility.php
- typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php 32 additions, 0 deletions...e/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php
- typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php 8 additions, 0 deletions...3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php
- typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php 12 additions, 1 deletion...ore/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php
- typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php 41 additions, 2 deletionstypo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
- typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Link/ClickEnlargeViewHelper.php 2 additions, 6 deletions...ntent/Classes/ViewHelpers/Link/ClickEnlargeViewHelper.php
- typo3/sysext/form/Classes/Domain/Model/Renderable/AbstractRenderable.php 4 additions, 1 deletion...rm/Classes/Domain/Model/Renderable/AbstractRenderable.php
- typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php 9 additions, 0 deletions...form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php
Please register or sign in to comment