diff --git a/Classes/Console/Core/Booting/Scripts.php b/Classes/Console/Core/Booting/Scripts.php index d70d239c..0ac29cfb 100644 --- a/Classes/Console/Core/Booting/Scripts.php +++ b/Classes/Console/Core/Booting/Scripts.php @@ -54,7 +54,10 @@ public static function initializeExtensionConfiguration(ContainerInterface $cont $container->get('boot.state')->done = false; $assetsCache = $container->get('cache.assets'); $coreCache = $container->get('cache.core'); - IconRegistry::setCache($assetsCache); + // compatibility to < v11 + if (method_exists(IconRegistry::class, 'setCache')) { + IconRegistry::setCache($assetsCache); + } PageRenderer::setCache($assetsCache); Bootstrap::loadTypo3LoadedExtAndExtLocalconf(true, $coreCache); Bootstrap::unsetReservedGlobalVariables();