Completed
Push — release-v2.1 ( 4af3af...1b85e9 )
by Quentin
05:00
created

MajoraOAuthServerBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 4 1
A build() 0 4 1
1
<?php
2
3
namespace Majora\Bundle\OAuthServerBundle;
4
5
use Majora\Bundle\OAuthServerBundle\DependencyInjection\Compiler\RegisterGrantExtensionsPass;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
9
class MajoraOAuthServerBundle extends Bundle
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function getContainerExtension()
15
    {
16
        return $this->createContainerExtension();
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function build(ContainerBuilder $container)
23
    {
24
        $container->addCompilerPass(new RegisterGrantExtensionsPass());
25
    }
26
}
27