Completed
Pull Request — master (#21)
by
unknown
02:08
created

UserBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
A getContainerExtension() 0 4 1
1
<?php
2
3
namespace Knp\Rad\User\Bundle;
4
5
use Knp\Rad\User\DependencyInjection\Compiler\PasswordGenerator;
6
use Knp\Rad\User\DependencyInjection\UserExtension;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class UserBundle extends Bundle
11
{
12
    public function build(ContainerBuilder $container)
13
    {
14
        parent::build($container);
15
16
        $container->addCompilerPass(new PasswordGenerator());
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getContainerExtension()
23
    {
24
        return new UserExtension();
25
    }
26
}
27