Completed
Push — master ( c7a350...473c45 )
by Sergei
38:34
created

ModeraBackendSecurityBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 4 1
1
<?php
2
3
namespace Modera\BackendSecurityBundle;
4
5
use Symfony\Component\HttpKernel\Bundle\Bundle;
6
use Modera\BackendSecurityBundle\DependencyInjection\ServiceAliasCompilerPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
9
/**
10
 * @author    Sergei Vizel <[email protected]>
11
 * @copyright 2014 Modera Foundation
12
 */
13
class ModeraBackendSecurityBundle extends Bundle
14
{
15
    const ROLE_ACCESS_BACKEND_TOOLS_SECURITY_SECTION = 'ROLE_ACCESS_BACKEND_TOOLS_SECURITY_SECTION';
16
    const ROLE_MANAGE_USER_PROFILES = 'ROLE_MANAGE_USER_PROFILES';
17
    const ROLE_MANAGE_PERMISSIONS = 'ROLE_MANAGE_PERMISSIONS';
18
19
    public function build(ContainerBuilder $container)
20
    {
21
        $container->addCompilerPass(new ServiceAliasCompilerPass());
22
    }
23
}
24