Completed
Push — master ( 3e7ede...b510d1 )
by Jérémy
14s queued 11s
created

EkinoNewRelicBundle   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 1
A boot() 0 6 2
1
<?php
2
3
/*
4
 * This file is part of Ekino New Relic bundle.
5
 *
6
 * (c) Ekino - Thomas Rabaix <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ekino\Bundle\NewRelicBundle;
13
14
use Ekino\Bundle\NewRelicBundle\DependencyInjection\Compiler\MonologHandlerPass;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18
class EkinoNewRelicBundle extends Bundle
19
{
20
    public function build(ContainerBuilder $container)
21
    {
22
        parent::build($container);
23
24
        $container->addCompilerPass(new MonologHandlerPass());
25
    }
26
27
    public function boot()
28
    {
29
        parent::boot();
30
31
        if ($this->container->getParameter('ekino.new_relic.log_deprecations')) {
32
            $this->container->get('ekino.new_relic.deprecation_listener')->register();
33
        }
34
    }
35
}
36
37