Completed
Pull Request — master (#1)
by Rafał
02:24
created

SWPMultiTenancyBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
1
<?php
2
3
/**
4
 * This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
5
 *
6
 * Copyright 2015 Sourcefabric z.u. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2015 Sourcefabric z.ú.
12
 * @license http://www.superdesk.org/license
13
 */
14
namespace SWP\MultiTenancyBundle;
15
16
use SWP\MultiTenancyBundle\DependencyInjection\Compiler\ConfigurePrefixCandidatesCompilerPass;
17
use SWP\MultiTenancyBundle\DependencyInjection\Compiler\TenantAwareRouterCompilerPass;
18
use Symfony\Component\DependencyInjection\ContainerBuilder;
19
use Symfony\Component\HttpKernel\Bundle\Bundle;
20
21
class SWPMultiTenancyBundle extends Bundle
22
{
23
    public function build(ContainerBuilder $container)
24
    {
25
        parent::build($container);
26
        $container->addCompilerPass(new ConfigurePrefixCandidatesCompilerPass());
27
        $container->addCompilerPass(new TenantAwareRouterCompilerPass());
28
    }
29
}
30