[!!!][TASK] Remove CSS/JS inclusion via PHP in TSFE 60/64660/6
authorBenni Mack <benni@typo3.org>
Wed, 3 Jun 2020 10:19:08 +0000 (12:19 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 5 Jun 2020 16:03:52 +0000 (18:03 +0200)
commitf1ad8077affd83e80ef80181c387dcae1453e69a
tree88ee050ae2d55a3acb5cc940db35bdcc95461f1c
parent15e23367c41ecd899db4fbbe3e6c41c23598e282
[!!!][TASK] Remove CSS/JS inclusion via PHP in TSFE

TypoScriptFrontendController has had functionality to dynamically
load JavaScript and CSS code, also in non-cacheable (USER_INT) content.

This has been largely superseded via the AssetCollector API and
PageRenderer API which is built in a way to deal with non-cacheable
and cacheable content with proper method calls.

For this reason, the legacy functionality is removed:
* TSFE->setJS (used via TSFE->setJS('openpic') in core)
* TSFE->additionalJavaScript
* TSFE->additionalCSS
* TSFE->JSCode
* TSFE->inlineJS

Although all methods and properties have been marked as internal
in TYPO3 v10, a Breaking RST is still added.

Resolves: #91563
Releases: master
Change-Id: I167dae29e3daa5e1d5ad4c6848dcc49fbfec3183
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64660
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Breaking-91563-PHP-basedJSCSSInclusionsForFrontendRemoved.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/Http/RequestHandler.php
typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php
typo3/sysext/install/Configuration/ExtensionScanner/Php/PropertyPublicMatcher.php