| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function process(ContainerBuilder $container) |
||
| 33 | { |
||
| 34 | $persisters = []; |
||
| 35 | $services = $container->findTaggedServiceIds('api_platform.data_persister', true); |
||
| 36 | |||
| 37 | foreach ($services as $serviceId => $tags) { |
||
| 38 | $persisters[] = new Reference($serviceId); |
||
| 39 | } |
||
| 40 | |||
| 41 | $container->getDefinition('api_platform.data_persister')->addArgument($persisters); |
||
| 42 | } |
||
| 44 |