-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEkynaCoreBundle.php
34 lines (30 loc) · 1.22 KB
/
EkynaCoreBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace Ekyna\Bundle\CoreBundle;
use Ekyna\Bundle\CoreBundle\DependencyInjection\Compiler\FormJsPass;
use Ekyna\Bundle\CoreBundle\DependencyInjection\Compiler\FosHttpCachePass;
use Ekyna\Bundle\CoreBundle\DependencyInjection\Compiler\RedirectionProviderPass;
use Ekyna\Bundle\CoreBundle\DependencyInjection\Compiler\RegisterRoutersPass;
use Ekyna\Bundle\CoreBundle\DependencyInjection\Compiler\SetRouterPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class EkynaCoreBundle
* @package Ekyna\Bundle\CoreBundle
* @author Étienne Dauvergne <contact@ekyna.com>
*/
class EkynaCoreBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new FosHttpCachePass());
$container->addCompilerPass(new RedirectionProviderPass());
$container->addCompilerPass(new SetRouterPass());
$container->addCompilerPass(new RegisterRoutersPass('ekyna_core.router'), PassConfig::TYPE_BEFORE_REMOVING);
$container->addCompilerPass(new FormJsPass());
}
}