Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Always fetch ContentObject from request in TYPO3v12+
The ContentObjectFetcher was introduced to have a common API for fetching the current content object across different TYPO3 versions. This class logs a deprecation notice in TYPO3v12: > TYPO3 Deprecation Notice: > ConfigurationManager->getContentObject() is deprecated since TYPO3 v12.4 > and will be removed in v13.0. > Fetch the current content object from request attribute > "currentContentObject" instead in > vendor/typo3/cms-extbase/Classes/Configuration/ConfigurationManager.php > line 96 To prevent this from happening, we check for the TYPO3 version and always use the request instead of the configuration manager in TYPO3v12+. Related: #1920 Related: #1921
- Loading branch information