LugResourceBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 15

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 15
dl 0
loc 23
rs 9.1666
c 0
b 0
f 0
ccs 15
cts 15
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 17 1
1
<?php
2
3
/*
4
 * This file is part of the Lug package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Lug\Bundle\ResourceBundle;
13
14
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\ConfigureResolveTargetEntitySubscriberPass;
15
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterDomainListenerPass;
16
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterDomainManagerPass;
17
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterDriverMappingPass;
18
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterFactoryPass;
19
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterFlashListenerPass;
20
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterManagerPass;
21
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterManagerTagPass;
22
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterMessageListenerPass;
23
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterRepositoryPass;
24
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterResourcePass;
25
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterRestListenerPass;
26
use Lug\Bundle\ResourceBundle\DependencyInjection\Compiler\ReplaceBase64FileExtensionPass;
27
use Symfony\Component\DependencyInjection\ContainerBuilder;
28
use Symfony\Component\HttpKernel\Bundle\Bundle;
29
30
/**
31
 * @author GeLo <[email protected]>
32
 */
33
class LugResourceBundle extends Bundle
34
{
35
    /**
36
     * {@inheritdoc}
37
     */
38 1
    public function build(ContainerBuilder $container)
39
    {
40
        $container
41 1
            ->addCompilerPass(new RegisterResourcePass())
42 1
            ->addCompilerPass(new RegisterDriverMappingPass())
43 1
            ->addCompilerPass(new RegisterFactoryPass())
44 1
            ->addCompilerPass(new RegisterManagerTagPass())
45 1
            ->addCompilerPass(new RegisterManagerPass())
46 1
            ->addCompilerPass(new RegisterRepositoryPass())
47 1
            ->addCompilerPass(new RegisterDomainManagerPass())
48 1
            ->addCompilerPass(new ConfigureResolveTargetEntitySubscriberPass())
49 1
            ->addCompilerPass(new RegisterFlashListenerPass())
50 1
            ->addCompilerPass(new RegisterMessageListenerPass())
51 1
            ->addCompilerPass(new RegisterDomainListenerPass())
52 1
            ->addCompilerPass(new RegisterRestListenerPass())
53 1
            ->addCompilerPass(new ReplaceBase64FileExtensionPass());
54 1
    }
55
}
56