[TASK] Deprecate various GeneralUtility methods
Some methods in GeneralUtility nowadays are wrappers to native PHP methods. We encourage people to use the PHP API directly. * GeneralUtility::IPv6Hex2Bin() * GeneralUtility::IPv6Bin2Hex() * GeneralUtility::compressIPv6() * GeneralUtility::milliseconds() In addition, these methods are unused by Core * GeneralUtility::linkThisUrl() * GeneralUtility::flushDirectory() Reasoning: In order to make our code less coupled, TYPO3 Core should use native PHP where it makes sense, instead of relying on GeneralUtility in all places. Resolves: #91001 Releases: master Change-Id: I9e3a2f4a4bb42facad2d79f959b36482dba23ec8 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64091 Tested-by:Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Alexander Schnitzler <git@alexanderschnitzler.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Alexander Schnitzler <git@alexanderschnitzler.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php 17 additions, 1 deletion...3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php
- typo3/sysext/core/Classes/Utility/GeneralUtility.php 14 additions, 5 deletionstypo3/sysext/core/Classes/Utility/GeneralUtility.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-91001-VariousMethodsWithinGeneralUtility.rst 57 additions, 0 deletions.../Deprecation-91001-VariousMethodsWithinGeneralUtility.rst
- typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php 0 additions, 77 deletionstypo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
- typo3/sysext/core/Tests/UnitDeprecated/Utility/GeneralUtilityTest.php 88 additions, 0 deletions.../core/Tests/UnitDeprecated/Utility/GeneralUtilityTest.php
- typo3/sysext/indexed_search/Classes/Controller/SearchController.php 4 additions, 3 deletions...xt/indexed_search/Classes/Controller/SearchController.php
- typo3/sysext/indexed_search/Classes/Indexer.php 2 additions, 2 deletionstypo3/sysext/indexed_search/Classes/Indexer.php
- typo3/sysext/indexed_search/Classes/Utility/IndexedSearchUtility.php 10 additions, 0 deletions...t/indexed_search/Classes/Utility/IndexedSearchUtility.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php 42 additions, 0 deletions...guration/ExtensionScanner/Php/MethodCallStaticMatcher.php
Please register or sign in to comment