Completed
Push — master ( 3a9385...4f2256 )
by WEBEWEB
06:25
created

WBWJQueryDataTablesBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

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