Completed
Push — master ( a0c467...7d26e1 )
by Tomáš
05:50
created

AliasingBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Symplify\ControllerAutowire\Tests\AliasingBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
use Symplify\ControllerAutowire\Tests\AliasingBundle\DependencyInjection\AliasingExtension;
8
use Symplify\ControllerAutowire\Tests\AliasingBundle\DependencyInjection\Compiler\AliasingCompilerPass;
9
10
final class AliasingBundle extends Bundle
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function build(ContainerBuilder $containerBuilder)
16
    {
17
        $containerBuilder->addCompilerPass(new AliasingCompilerPass());
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getContainerExtension()
24
    {
25
        return new AliasingExtension();
26
    }
27
}
28