StorefrontPluginRegistry example


                return $this->kernel->getCharset();
            }

            public function __call($name$arguments) /* @phpstan-ignore-line */
            {
                return $this->kernel->$name(...\func_get_args()); /* @phpstan-ignore-line */
            }
        };

        $themeService = new ThemeService(
            new StorefrontPluginRegistry(
                $kernel,
                $this->getContainer()->get(StorefrontPluginConfigurationFactory::class),
                $this->getContainer()->get(ActiveAppsLoader::class)
            ),
            $this->getContainer()->get('theme.repository'),
            $this->getContainer()->get('theme_sales_channel.repository'),
            $themeCompilerMock,
            $this->getContainer()->get('event_dispatcher'),
            new DatabaseConfigLoader(
                $this->getContainer()->get('theme.repository'),
                new StorefrontPluginRegistry(
                    
/** * @param array<int, Plugin> $plugins */
    private function getStorefrontPluginRegistry(array $plugins): StorefrontPluginRegistryInterface
    {
        $kernel = $this->createMock(Kernel::class);
        $kernel->expects(static::any())
            ->method('getBundles')
            ->willReturn($plugins);

        return new StorefrontPluginRegistry(
            $kernel,
            $this->getContainer()->get(StorefrontPluginConfigurationFactory::class),
            $this->getContainer()->get(ActiveAppsLoader::class)
        );
    }
}

/** * @internal */
class ConfigurationServiceException extends ConfigurationService
{
Home | Imprint | This part of the site doesn't use cookies.