TYPO3-Documentation / TYPO3CMS-Reference-CoreApi

"TYPO3 Explained": Main TYPO3 Core Document: Main classes, Security, TypoScript syntax, Extension API and much more
https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/
21 stars 370 forks source link

DocHeader example uses invalid API method #4540

Closed cweiske closed 1 week ago

cweiske commented 2 weeks ago

Current behavior

The example code on Create a backend module with Core functionality: The DocHeader uses $this->moduleTemplate->getIconFactory() which does not exist anymore in TYPO3 v12+:

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.5/Deprecation-95235-PublicGetterOfServicesInModuleTemplate.html