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

MajoraOAuthServerBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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