-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetTeamDataTableBundle.php
More file actions
28 lines (24 loc) · 1.01 KB
/
NetTeamDataTableBundle.php
File metadata and controls
28 lines (24 loc) · 1.01 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
<?php
namespace NetTeam\Bundle\DataTableBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use NetTeam\Bundle\DataTableBundle\DependencyInjection\DataTableExtension;
use NetTeam\Bundle\DataTableBundle\DependencyInjection\Compiler\ColumnFactoryPass;
use NetTeam\Bundle\DataTableBundle\DependencyInjection\Compiler\DataTablePass;
use NetTeam\Bundle\DataTableBundle\DependencyInjection\Compiler\ExportPass;
use NetTeam\Bundle\DataTableBundle\DependencyInjection\Compiler\FilterPass;
class NetTeamDataTableBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new DataTablePass());
$container->addCompilerPass(new FilterPass());
$container->addCompilerPass(new ColumnFactoryPass());
$container->addCompilerPass(new ExportPass());
$container->registerExtension(new DataTableExtension());
}
}