| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function process(ContainerBuilder $container) |
||
| 15 | { |
||
| 16 | $hydrator = [ReadOnlyHydrator::HYDRATOR_NAME, ReadOnlyHydrator::class]; |
||
| 17 | foreach ($container->getParameter('doctrine.entity_managers') as $name => $serviceName) { |
||
| 18 | $definition = $container->getDefinition('doctrine.orm.' . $name . '_configuration'); |
||
| 19 | $definition->addMethodCall('addCustomHydrationMode', $hydrator); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | } |
||
| 23 |