Completed
Pull Request — master (#11)
by Pierre
07:16 queued 05:09
created

SecurityBundle   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 5
Bugs 1 Features 1
Metric Value
wmc 3
c 5
b 1
f 1
lcom 1
cbo 2
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContainerExtension() 0 8 2
1
<?php
2
3
namespace Knp\Rad\Security\Bundle;
4
5
use Knp\Rad\Security\DependencyInjection\SecurityExtension;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
8
class SecurityBundle extends Bundle
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function __construct()
14
    {
15
        $this->name = 'knp_rad_security_bundle';
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getContainerExtension()
22
    {
23
        if (null === $this->extension) {
24
            $this->extension = new SecurityExtension();
25
        }
26
27
        return $this->extension;
28
    }
29
}
30