| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 1 | public function process(ContainerBuilder $container): void |
|
| 27 | { |
||
| 28 | 1 | $definition = $container->getDefinition(FilesystemProvider::class); |
|
| 29 | 1 | $taggedServices = $container->findTaggedServiceIds(FilesystemProvider::FILESYSTEM_ADAPTER_TAG); |
|
| 30 | 1 | foreach ($taggedServices as $serviceId => $tags) { |
|
| 31 | 1 | foreach ($tags as $attributes) { |
|
| 32 | 1 | $definition->addMethodCall( |
|
| 33 | 1 | 'addAdapter', |
|
| 34 | [ |
||
| 35 | 1 | $attributes['alias'], |
|
| 36 | 1 | new Reference($serviceId), |
|
| 37 | ] |
||
| 43 |