use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
-use TYPO3\CMS\Core\Compatibility\LoadedExtensionArrayElement;
use TYPO3\CMS\Core\Core\ClassLoadingInformation;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Service\DependencyOrderingService;
} catch (Exception\PackageManagerCacheUnavailableException $exception) {
$this->loadPackageStates();
$this->initializePackageObjects();
- // @deprecated will be removed in TYPO3 v10.0
- $this->initializeCompatibilityLoadedExtArray();
$this->saveToPackageCache();
}
}
$packageCache = [
'packageStatesConfiguration' => $this->packageStatesConfiguration,
'packageAliasMap' => $this->packageAliasMap,
- // @deprecated will be removed in TYPO3 v10.0
- 'loadedExtArray' => $GLOBALS['TYPO3_LOADED_EXT'],
'composerNameToPackageKeyMap' => $this->composerNameToPackageKeyMap,
'packageObjects' => serialize($this->packages),
];
\stdClass::class,
]
]);
- // @deprecated will be removed in TYPO3 v10.0
- $GLOBALS['TYPO3_LOADED_EXT'] = $packageCache['loadedExtArray'];
}
/**
$this->packageStatesConfiguration['packages'][$package->getPackageKey()] = ['packagePath' => str_replace($this->packagesBasePath, '', $package->getPackagePath())];
}
- /**
- * Initializes a backwards compatibility $GLOBALS['TYPO3_LOADED_EXT'] array
- */
- protected function initializeCompatibilityLoadedExtArray()
- {
- // @deprecated will be removed in TYPO3 v10.0
- $loadedExtObj = new \TYPO3\CMS\Core\Compatibility\LoadedExtensionsArray($this);
- $GLOBALS['TYPO3_LOADED_EXT'] = $loadedExtObj->toArray();
- }
-
/**
* Scans all directories in the packages directories for available packages.
* For each package a Package object is created and stored in $this->packages.
{
$package = $this->registerPackageDuringRuntime($packageKey);
$this->runtimeActivatedPackages[$package->getPackageKey()] = $package;
- // @deprecated will be removed in TYPO3 v10.0
- if (!isset($GLOBALS['TYPO3_LOADED_EXT'][$package->getPackageKey()])) {
- $loadedExtArrayElement = new LoadedExtensionArrayElement($package);
- $GLOBALS['TYPO3_LOADED_EXT'][$package->getPackageKey()] = $loadedExtArrayElement->toArray();
- }
$this->registerTransientClassLoadingInformationForPackage($package);
}
$packageStatesCode = "<?php\n$fileDescription\nreturn " . ArrayUtility::arrayExport($this->packageStatesConfiguration) . ";\n";
GeneralUtility::writeFile($this->packageStatesPathAndFilename, $packageStatesCode, true);
- // @deprecated will be removed in TYPO3 v10.0
- $this->initializeCompatibilityLoadedExtArray();
-
GeneralUtility::makeInstance(OpcodeCacheService::class)->clearAllActive($this->packageStatesPathAndFilename);
}