XiideaEasyAuditBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 9
rs 10
c 3
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the XiideaEasyAuditBundle package.
5
 *
6
 * (c) Xiidea <http://www.xiidea.net>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Xiidea\EasyAuditBundle;
13
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\HttpKernel\Bundle\Bundle;
16
use Xiidea\EasyAuditBundle\DependencyInjection\Compiler\LoggerFactoryPass;
17
use Xiidea\EasyAuditBundle\DependencyInjection\Compiler\MonologLoggerPass;
18
use Xiidea\EasyAuditBundle\DependencyInjection\Compiler\ResolverFactoryPass;
19
use Xiidea\EasyAuditBundle\DependencyInjection\Compiler\SubscriberPass;
20
21
class XiideaEasyAuditBundle extends Bundle
22
{
23
    #[\Override]
24
    public function build(ContainerBuilder $container): void
25
    {
26
        parent::build($container);
27
28
        $container->addCompilerPass(new MonologLoggerPass());
29
        $container->addCompilerPass(new LoggerFactoryPass());
30
        $container->addCompilerPass(new SubscriberPass());
31
        $container->addCompilerPass(new ResolverFactoryPass());
32
    }
33
}
34