Project

General

Profile

Bug #97665 » local_history_ExtensionManagementUtility_II.patch

Dieter Porth, 2022-05-21 08:01

View differences:

web/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
use TYPO3\CMS\Core\Package\PackageManager;
use TYPO3\CMS\Core\Preparations\TcaPreparation;
use TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter;
use TYPO3\CMS\Core\Service\DependencyOrderingService;
/**
* Extension Management functions
......
*/
public static function isLoaded($key)
{
if (static::$packageManager === null) {
$dependencyOrderingService = GeneralUtility::makeInstance( DependencyOrderingService::class);
static::$packageManager = GeneralUtility::makeInstance(PackageManager::class,[$dependencyOrderingService]);
}
return static::$packageManager->isPackageActive($key);
}
(5-5/5)