Completed
Push — master ( 8c5b1a...9a26dd )
by Tomáš
17:38
created

SymplifyDefaultAutowireBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 2
c 3
b 0
f 2
lcom 0
cbo 5
dl 0
loc 24
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 1
A getContainerExtension() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Symplify
5
 * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
6
 */
7
8
namespace Symplify\DefaultAutowire;
9
10
use Symfony\Component\DependencyInjection\ContainerBuilder;
11
use Symfony\Component\HttpKernel\Bundle\Bundle;
12
use Symplify\DefaultAutowire\DependencyInjection\Compiler\DefaultAutowireTypesCompilerPass;
13
use Symplify\DefaultAutowire\DependencyInjection\Compiler\TurnOnAutowireCompilerPass;
14
use Symplify\DefaultAutowire\DependencyInjection\Extension\SymplifyDefaultAutowireContainerExtension;
15
16
final class SymplifyDefaultAutowireBundle extends Bundle
17
{
18
    /**
19
     * @var string
20
     */
21
    const ALIAS = 'symplify_default_autowire';
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 1
    public function build(ContainerBuilder $containerBuilder)
27
    {
28 1
        $containerBuilder->addCompilerPass(new DefaultAutowireTypesCompilerPass());
29 1
        $containerBuilder->addCompilerPass(new TurnOnAutowireCompilerPass());
30 1
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35 1
    public function getContainerExtension()
36
    {
37 1
        return new SymplifyDefaultAutowireContainerExtension();
38
    }
39
}
40