#95305ExtensionManagementUtility::isLoaded() cannot be used in Configuration/Services.php
Description
When using the following code in Configuration/Services.php to check if an extension is loaded:
return function (ContainerConfigurator $configurator): void {
if (!ExtensionManagementUtility::isLoaded('dashboard')) {
return;
}
// ... register widgets
}
the following exception is thrown:
Call to a member function isPackageActive() on null in /var/www/html/public/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php line 120
This is since TYPO3 11.4, in 11.3 it worked.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.