Conditions | 4 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function process(ContainerBuilder $container) |
||
23 | { |
||
24 | if (!$container->has('ezpublish.core.io.migration.migration_handler_registry')) { |
||
25 | return; |
||
26 | } |
||
27 | |||
28 | $migrationHandlersTagged = $container->findTaggedServiceIds('ezpublish.core.io.migration.migration_handler'); |
||
29 | |||
30 | $migrationHandlers = []; |
||
31 | foreach ($migrationHandlersTagged as $id => $tags) { |
||
32 | foreach ($tags as $attributes) { |
||
33 | $migrationHandlers[$attributes['identifier']] = new Reference($id); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | $migrationHandlerRegistryDef = $container->findDefinition('ezpublish.core.io.migration.migration_handler_registry'); |
||
38 | $migrationHandlerRegistryDef->setArguments([$migrationHandlers]); |
||
39 | } |
||
40 | } |
||
41 |