Completed
Push — master ( 4207f0...333332 )
by Kamil
23:19 queued 01:42
created

SyliusThemeBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sylius\Bundle\ThemeBundle;
13
14
use Sylius\Bundle\ThemeBundle\DependencyInjection\Compiler\ThemeRepositoryPass;
15
use Sylius\Bundle\ThemeBundle\Translation\DependencyInjection\Compiler\ThemeAwareLoaderDecoratorPass;
16
use Sylius\Bundle\ThemeBundle\Translation\DependencyInjection\Compiler\ThemeAwareSourcesPass;
17
use Sylius\Bundle\ThemeBundle\Translation\DependencyInjection\Compiler\ThemesTranslationsSourcesPass;
18
use Symfony\Component\DependencyInjection\ContainerBuilder;
19
use Symfony\Component\HttpKernel\Bundle\Bundle;
20
21
/**
22
 * @author Kamil Kokot <[email protected]>
23
 */
24
class SyliusThemeBundle extends Bundle
25
{
26
    /**
27
     * @param ContainerBuilder $container
28
     */
29
    public function build(ContainerBuilder $container)
30
    {
31
        parent::build($container);
32
33
        $container->addCompilerPass(new ThemeRepositoryPass());
34
        $container->addCompilerPass(new ThemeAwareSourcesPass());
35
        $container->addCompilerPass(new ThemeAwareLoaderDecoratorPass());
36
    }
37
}
38