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