-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathWBWJQueryDataTablesBundle.php
More file actions
67 lines (57 loc) · 1.75 KB
/
WBWJQueryDataTablesBundle.php
File metadata and controls
67 lines (57 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
declare(strict_types = 1);
/*
* This file is part of the jquery-datatables-bundle package.
*
* (c) 2018 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\JQuery\DataTablesBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use WBW\Bundle\CoreBundle\Provider\AssetsProviderInterface;
use WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\Compiler\DataTablesProviderCompilerPass;
use WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\WBWJQueryDataTablesExtension;
/**
* jQuery DataTables bundle.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Bundle\jQuery\DatatablesBundle
*/
class WBWJQueryDataTablesBundle extends Bundle implements AssetsProviderInterface {
/**
* Translation domain.
*
* @var string
*/
public const TRANSLATION_DOMAIN = "WBWJQueryDataTablesBundle";
/**
* {@inheritDoc}
*/
public function build(ContainerBuilder $container): void {
$container->addCompilerPass(new DataTablesProviderCompilerPass());
}
/**
* {@inheritDoc}
*/
public function getAssetsRelativeDirectory(): string {
return self::ASSETS_RELATIVE_DIRECTORY;
}
/**
* {@inheritDoc}
*/
public function getContainerExtension(): Extension {
return new WBWJQueryDataTablesExtension();
}
/**
* Get the translation domain.
*
* @return string Returns the translation domain.
*/
public static function getTranslationDomain(): string {
return self::TRANSLATION_DOMAIN;
}
}