Completed
Push — master ( 5482a0...637703 )
by WEBEWEB
01:48
created

WBWCoreBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 4 1
A getAssetsRelativeDirectory() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
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 WBW\Bundle\CoreBundle;
13
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\HttpKernel\Bundle\Bundle;
16
use WBW\Bundle\CoreBundle\DependencyInjection\Compiler\ColorProviderCompilerPass;
17
use WBW\Bundle\CoreBundle\DependencyInjection\Compiler\QuoteProviderCompilerPass;
18
use WBW\Bundle\CoreBundle\Provider\AssetsProviderInterface;
19
20
/**
21
 * Core bundle.
22
 *
23
 * @author webeweb <https://github.com/webeweb/>
24
 * @package WBW\Bundle\CoreBundle
25
 */
26
class WBWCoreBundle extends Bundle implements AssetsProviderInterface {
27
28
    /**
29
     * {@inheritDoc}
30
     */
31
    public function build(ContainerBuilder $container) {
32
        $container->addCompilerPass(new ColorProviderCompilerPass());
33
        $container->addCompilerPass(new QuoteProviderCompilerPass());
34
    }
35
36
    /**
37
     * {@inheritDoc}
38
     */
39
    public function getAssetsRelativeDirectory() {
40
        return "/Resources/assets";
41
    }
42
}
43