-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFDevsDataExtractorBundle.php
More file actions
35 lines (31 loc) · 1.3 KB
/
FDevsDataExtractorBundle.php
File metadata and controls
35 lines (31 loc) · 1.3 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
<?php
namespace FDevs\Bridge\DataExtractor;
use FDevs\Bridge\DataExtractor\DependencyInjection\Compailer\DataExtensionPass;
use FDevs\Bridge\DataExtractor\DependencyInjection\Compailer\TargetExtensionPass;
use FDevs\Bridge\DataExtractor\DependencyInjection\FDevsDataExtractorExtension;
use FDevs\Container\Compiler\ServiceLocatorPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class FDevsDataExtractorBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
{
$container
->addCompilerPass(new DataExtensionPass())
->addCompilerPass(new TargetExtensionPass())
->addCompilerPass(new ServiceLocatorPass('f_devs_data_extractor.container_target_extension', 'f_devs_data_extractor.target_extension'))
->addCompilerPass(new ServiceLocatorPass('f_devs_data_extractor.container_data_extension', 'f_devs_data_extractor.data_extension'))
->addCompilerPass(new ServiceLocatorPass('f_devs_data_extractor.container_extract_factory', 'f_devs_data_extractor.extracted_factory'))
;
}
/**
* {@inheritdoc}
*/
protected function getContainerExtensionClass()
{
return FDevsDataExtractorExtension::class;
}
}