Completed
Push — master ( 23e505...b53df9 )
by WEBEWEB
03:00
created

JQueryDataTablesBundle::getContainerExtension()   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 0
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\JQueryDataTablesCompilerPass;
18
use WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\JQueryDataTablesExtension;
19
20
/**
21
 * jQuery DataTables bundle.
22
 *
23
 * @author webeweb <https://github.com/webeweb/>
24
 * @package WBW\Bundle\jQuery\DatatablesBundle
25
 */
26
class JQueryDataTablesBundle extends Bundle implements AssetsProviderInterface {
27
28
    /**
29
     * DataTables version.
30
     *
31
     * @var string
32
     * @deprecated since 2.1.0
33
     */
34
    const DATATABLES_VERSION = DataTablesVersionInterface::DATATABLES_VERSION;
35
36
    /**
37
     * {@inheritDoc}
38
     */
39
    public function build(ContainerBuilder $container) {
40
        $container->addCompilerPass(new JQueryDataTablesCompilerPass());
41
    }
42
43
    /**
44
     * {@inheritDoc}
45
     */
46
    public function getAssetsRelativeDirectory() {
47
        return "/Resources/assets";
48
    }
49
50
    /**
51
     * {@inheritDoc}
52
     */
53
    public function getContainerExtension() {
54
        return new JQueryDataTablesExtension();
55
    }
56
}
57