| Conditions | 4 |
| Paths | 8 |
| Total Lines | 29 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function process(ContainerBuilder $container): void |
||
| 26 | { |
||
| 27 | // ListBuilder |
||
| 28 | $definition = $container->getDefinition('sonata.admin.guesser.orm_list_chain'); |
||
| 29 | $services = []; |
||
| 30 | foreach ($container->findTaggedServiceIds('sonata.admin.guesser.orm_list') as $id => $attributes) { |
||
| 31 | $services[] = new Reference($id); |
||
| 32 | } |
||
| 33 | |||
| 34 | $definition->replaceArgument(0, $services); |
||
| 35 | |||
| 36 | // DatagridBuilder |
||
| 37 | $definition = $container->getDefinition('sonata.admin.guesser.orm_datagrid_chain'); |
||
| 38 | $services = []; |
||
| 39 | foreach ($container->findTaggedServiceIds('sonata.admin.guesser.orm_datagrid') as $id => $attributes) { |
||
| 40 | $services[] = new Reference($id); |
||
| 41 | } |
||
| 42 | |||
| 43 | $definition->replaceArgument(0, $services); |
||
| 44 | |||
| 45 | // ShowBuilder |
||
| 46 | $definition = $container->getDefinition('sonata.admin.guesser.orm_show_chain'); |
||
| 47 | $services = []; |
||
| 48 | foreach ($container->findTaggedServiceIds('sonata.admin.guesser.orm_show') as $id => $attributes) { |
||
| 49 | $services[] = new Reference($id); |
||
| 50 | } |
||
| 51 | |||
| 52 | $definition->replaceArgument(0, $services); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |