Completed
Push — master ( bc7f64...acf9b5 )
by Yann
9s
created

SecurityBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
c 3
b 1
f 0
dl 0
loc 19
rs 9.4285
cc 1
eloc 12
nc 1
nop 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A SecurityBundle::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