Deprecation: #82899 - ExtensionManagementUtility methods

See forge#82899

Description

The following methods have been marked as deprecated in ExtensionManagementUtility

  • siteRelPath()

  • getExtensionKeyByPrefix()

  • removeCacheFiles()

Additionally the second method parameter of ExtensionManagementUtility::isLoaded() to throw an exception when an extension is not loaded, has been marked as deprecated, and should not be used anymore.

Impact

Calling any of the methods or isLoaded() with a second argument set explictly will trigger a deprecation message.

Affected Installations

Any TYPO3 installation with an extension calling any of the methods above.

Migration

Use PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath($extensionKey)) instead of ExtensionManagementUtility::siteRelPath().

Instead of calling getExtensionKeyByPrefix() use the extension key directly.

Use CacheManager API directly instead of calling removeCacheFiles().