Passed
Push — master ( 176f7f...98ecdf )
by Michael
01:25
created

OsLabSecurityApiBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 14
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the SecurityApiBundle package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace OsLab\SecurityApiBundle;
11
12
use OsLab\SecurityApiBundle\DependencyInjection\Security\UserProvider\InMemoryApiFactory;
13
use Symfony\Component\HttpKernel\Bundle\Bundle;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
16
/**
17
 * Class OsLabSecurityApiBundle
18
 *
19
 * @author Michael COULLERET <[email protected]>
20
 */
21
class OsLabSecurityApiBundle extends Bundle
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function build(ContainerBuilder $container)
27
    {
28
        parent::build($container);
29
30
        $extension = $container->getExtension('security');
31
32
        $extension->addUserProviderFactory(new InMemoryApiFactory());
33
    }
34
}
35