PluginBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * Copyright (c) 2017
4
 *
5
 * @package   Majima
6
 * @author    David Neustadt <[email protected]>
7
 * @copyright 2017 David Neustadt
8
 * @license   MIT
9
 */
10
11
namespace Majima\PluginBundle;
12
13
use Symfony\Component\HttpKernel\Bundle\Bundle;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Majima\PluginBundle\DependencyInjection\Compiler\PluginPass;
16
17
/**
18
 * Class PluginBundle
19
 * @package Majima
20
 */
21
class PluginBundle extends Bundle
22
{
23
    /**
24
     * @param ContainerBuilder $container
25
     */
26
    public function build(ContainerBuilder $container)
27
    {
28
        parent::build($container);
29
30
        $container->addCompilerPass(new PluginPass());
31
    }
32
}