vendor/netgen/site-bundle/bundle/NetgenSiteBundle.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Netgen\Bundle\SiteBundle;
  4. use Netgen\Bundle\SiteBundle\DependencyInjection\Compiler;
  5. use Netgen\Bundle\SiteBundle\DependencyInjection\NetgenSiteExtension;
  6. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  7. use Symfony\Component\DependencyInjection\ContainerBuilder;
  8. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  9. use Symfony\Component\HttpKernel\Bundle\Bundle;
  10. final class NetgenSiteBundle extends Bundle
  11. {
  12. public function build(ContainerBuilder $container): void
  13. {
  14. $container->addCompilerPass(new Compiler\XslRegisterPass());
  15. $container->addCompilerPass(new Compiler\ImagineIOResolverPass());
  16. $container->addCompilerPass(new Compiler\ContentDownloadUrlGeneratorPass());
  17. $container->addCompilerPass(new Compiler\TwigEnvironmentPass());
  18. $container->addCompilerPass(new Compiler\IoStorageAllowListPass());
  19. $container->addCompilerPass(new Compiler\PHPStormPass(), PassConfig::TYPE_OPTIMIZE);
  20. $container->addCompilerPass(new Compiler\DirectDownloadPass());
  21. }
  22. public function getContainerExtension(): ExtensionInterface
  23. {
  24. $this->extension ??= new NetgenSiteExtension();
  25. return $this->extension;
  26. }
  27. }