-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecognizeDwhApplicationBundle.php
More file actions
34 lines (30 loc) · 1.02 KB
/
RecognizeDwhApplicationBundle.php
File metadata and controls
34 lines (30 loc) · 1.02 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
<?php
namespace Recognize\DwhApplication;
use Recognize\DwhApplication\DependencyInjection\Compiler\TagLoaderPass;
use Recognize\DwhApplication\DependencyInjection\DwhApplicationExtension;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class RecognizeDwhApplicationBundle
* @package Recognize\DwhApplication
*/
class RecognizeDwhApplicationBundle extends Bundle
{
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new TagLoaderPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 100000);
}
/**
* @return DwhApplicationExtension|ExtensionInterface|null
*/
public function getContainerExtension(): ?ExtensionInterface
{
return new DwhApplicationExtension();
}
}