Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function process(ContainerBuilder $container) |
||
15 | { |
||
16 | if (!$container->has('kasifi_pdfparser.pdf_parser')) { |
||
17 | return; |
||
18 | } |
||
19 | |||
20 | $definition = $container->findDefinition( |
||
21 | 'kasifi_pdfparser.pdf_parser' |
||
22 | ); |
||
23 | |||
24 | $taggedServices = $container->findTaggedServiceIds('kasifi_pdfparser.processor'); |
||
25 | foreach ($taggedServices as $id => $tags) { |
||
26 | $definition->addMethodCall( |
||
27 | 'addAvailableProcessor', |
||
28 | [new Reference($id)] |
||
29 | ); |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 |