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

ModeraBackendSecurityBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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