| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function process(ContainerBuilder $container) |
||
| 25 | { |
||
| 26 | $componentsDefinition = $container->getDefinition(UiComponents::class); |
||
| 27 | |||
| 28 | $components = $container->findTaggedServiceIds('exp.ui.component'); |
||
| 29 | foreach ($components as $id => $tags) { |
||
| 30 | foreach ($tags as $attributes) { |
||
| 31 | $componentsDefinition->addMethodCall('registerUiComponent', [$attributes['type'], new Reference($id)]); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | } |