vendor/ibexa/standard-design/src/bundle/IbexaStandardDesignBundle.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * @copyright Copyright (C) Ibexa AS. All rights reserved.
  4.  * @license For full copyright and license information view LICENSE file distributed with this source code.
  5.  */
  6. declare(strict_types=1);
  7. namespace Ibexa\Bundle\StandardDesign;
  8. use Ibexa\Bundle\StandardDesign\DependencyInjection\Compiler\KernelOverridePass;
  9. use Ibexa\Bundle\StandardDesign\DependencyInjection\Compiler\StandardThemePass;
  10. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. /**
  14.  * Ibexa DXP Standard Design Bundle.
  15.  */
  16. class IbexaStandardDesignBundle extends Bundle
  17. {
  18.     public function build(ContainerBuilder $container)
  19.     {
  20.         parent::build($container);
  21.         // Ensure compiler passes are processed before Ibexa Design Engine passes, by giving priority > 0
  22.         $container->addCompilerPass(new KernelOverridePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION1);
  23.         $container->addCompilerPass(new StandardThemePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION1);
  24.     }
  25. }
  26. class_alias(IbexaStandardDesignBundle::class, 'EzSystems\EzPlatformStandardDesignBundle\EzPlatformStandardDesignBundle');