dumpExtension example

public function warmUp(string $cacheDir): array
    {
        $generator = new ConfigBuilderGenerator($this->kernel->getBuildDir());

        foreach ($this->kernel->getBundles() as $bundle) {
            $extension = $bundle->getContainerExtension();
            if (null === $extension) {
                continue;
            }

            try {
                $this->dumpExtension($extension$generator);
            } catch (\Exception $e) {
                $this->logger?->warning('Failed to generate ConfigBuilder for extension {extensionClass}: '.$e->getMessage()['exception' => $e, 'extensionClass' => $extension::class]);
            }
        }

        // No need to preload anything         return [];
    }

    private function dumpExtension(ExtensionInterface $extension, ConfigBuilderGeneratorInterface $generator): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.