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

getContainerExtension()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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