Actions
Task #66390
closedConflicting "use" namespace in extension extLocalconf.php and extTables.php breaks cache
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2015-04-13
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
Using shortened namespaces with "use" in the files extLocalconf.php and extTables.php for an extension breaks the cache. These files are concatenated which might lead to multiple "uses" of the same namespace.
Classic example would be "TYPO3\CMS\Core\Utility\ExtensionManagementUtility".
Solution would be to parse for "use" statements during concatenation, store them in an array, remove them from the code, remove duplicates from the array and then add the whole of it back to the top of the concatenated file.
Actions