Deprecation: #78193 - ExtensionManagementUtility::extRelPath()¶
See forge#78193
Description¶
The method ExtensionManagementUtility::extRelPath()
for resolving paths relative to the current script has been marked as deprecated.
Impact¶
Calling ExtensionManagementUtility::extRelPath()
will trigger a deprecation log entry.
Affected Installations¶
Any TYPO3 instance with extensions or third-party scripts resolving paths with the method above.
Migration¶
Use alternatives for resolving paths. There are the following methods available:
ExtensionManagementUtility::extPath()
- to resolve the full path of an extensionExtensionManagementUtility::siteRelPath()
- to resolve the location of an extension relative toPATH_site
GeneralUtility::getFileAbsFileName()
- to resolve a file/path prefixed withEXT:myext
PathUtility::getAbsoluteWebPath()
- used for output a file location (previously resolved withGeneralUtility::getFileAbsFileName()
) that is absolutely prefixed for the web folder