Completed
Pull Request — master (#11)
by Pierre
06:36
created

SecurityBundle::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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