<?php
/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace Ibexa\Bundle\StandardDesign;
use Ibexa\Bundle\StandardDesign\DependencyInjection\Compiler\KernelOverridePass;
use Ibexa\Bundle\StandardDesign\DependencyInjection\Compiler\StandardThemePass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Ibexa DXP Standard Design Bundle.
*/
class IbexaStandardDesignBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
// Ensure compiler passes are processed before Ibexa Design Engine passes, by giving priority > 0
$container->addCompilerPass(new KernelOverridePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);
$container->addCompilerPass(new StandardThemePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);
}
}
class_alias(IbexaStandardDesignBundle::class, 'EzSystems\EzPlatformStandardDesignBundle\EzPlatformStandardDesignBundle');