Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
1 | <?php |
||
22 | 1 | public function build(ContainerBuilder $container) |
|
23 | { |
||
24 | 1 | parent::build($container); |
|
25 | |||
26 | 1 | $container->addCompilerPass( |
|
27 | new class implements CompilerPassInterface |
||
28 | { |
||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | public function process(ContainerBuilder $container) |
||
33 | { |
||
34 | $executorId = 'thruster_data_mapper_actions.map.executor'; |
||
35 | $executorDefinition = new Definition( |
||
36 | 'Thruster\Component\DataMapper\DataMappers', |
||
37 | [new Reference('thruster_data_mappers')] |
||
38 | ); |
||
39 | |||
40 | $executorDefinition->addTag('thruster_action_executor', []); |
||
41 | $container->setDefinition($executorId, $executorDefinition); |
||
42 | } |
||
43 | } |
||
44 | ); |
||
45 | 1 | } |
|
46 | |||
48 |