Skip to content

Commit fefb392

Browse files
committed
Update TYPO3 bootstrap
1 parent 7b31a15 commit fefb392

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/PhpstanTypo3Bootstrap.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@
3939
->disableCoreCache()
4040
->initializeCachingFramework()
4141
// Set all packages to active
42-
->initializePackageManagement(\TYPO3\CMS\Core\Package\UnitTestPackageManager::class);
42+
->createPackageManager(
43+
\TYPO3\CMS\Core\Package\UnitTestPackageManager::class,
44+
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Cache\CacheManager::class)->getCache('cache_core')
45+
);
4346

44-
if (\TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading()) {
47+
if (\TYPO3\CMS\Core\Core\Environment::isComposerMode()) {
4548
return;
4649
}
4750

0 commit comments

Comments
 (0)