Completed
Push — master ( 00ddb5...ff73b6 )
by WEBEWEB
02:16
created

WBWJQueryDataTablesBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
use WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\WBWJQueryDataTablesExtension;
19
20
/**
21
 * jQuery DataTables bundle.
22
 *
23
 * @author webeweb <https://github.com/webeweb/>
24
 * @package WBW\Bundle\jQuery\DatatablesBundle
25
 */
26
class WBWJQueryDataTablesBundle extends Bundle implements AssetsProviderInterface {
27
28
    /**
29
     * {@inheritDoc}
30
     */
31
    public function build(ContainerBuilder $container) {
32
        $container->addCompilerPass(new DataTablesProviderCompilerPass());
33
    }
34
35
    /**
36
     * {@inheritDoc}
37
     */
38
    public function getAssetsRelativeDirectory() {
39
        return "/Resources/assets";
40
    }
41
42
    /**
43
     * {@inheritDoc}
44
     */
45
    public function getContainerExtension() {
46
        return new WBWJQueryDataTablesExtension();
47
    }
48
}
49