public function boot(): void
{ parent::
boot();
\
assert($this->container instanceof ContainerInterface, 'Container is not set yet, please call setContainer() before calling boot(), see `src/Core/Kernel.php:186`.'
);
$featureFlags =
$this->container->
getParameter('shopware.feature.flags'
);
if (!\
is_array($featureFlags)) { throw new \
RuntimeException('Container parameter "shopware.feature.flags" needs to be an array'
);
} Feature::
registerFeatures($featureFlags);
$cacheDir =
$this->container->
getParameter('kernel.cache_dir'
);
if (!\
is_string($cacheDir)) { throw new \
RuntimeException('Container parameter "kernel.cache_dir" needs to be a string'
);
} $this->
registerEntityExtensions( $this->container->
get(DefinitionInstanceRegistry::
class),
$this->container->
get(SalesChannelDefinitionInstanceRegistry::
class),
$this->container->
get(ExtensionRegistry::
class) );