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

SecurityBundle::getContainerExtension()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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