| Conditions | 6 | 
| Paths | 5 | 
| Total Lines | 22 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 22 | public function process(ContainerBuilder $container)  | 
            ||
| 23 |     { | 
            ||
| 24 | $subscriberId = 'doctrine.orm.listeners.pdo_cache_adapter_doctrine_schema_subscriber';  | 
            ||
| 25 | |||
| 26 |         if (!$container->hasDefinition($subscriberId)) { | 
            ||
| 27 | return;  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | $cacheAdaptersReferences = [];  | 
            ||
| 31 |         foreach ($container->getDefinitions() as $id => $definition) { | 
            ||
| 32 |             if ($definition->isAbstract() || $definition->isSynthetic()) { | 
            ||
| 33 | continue;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 |             if ($definition->getClass() === PdoAdapter::class) { | 
            ||
| 37 | $cacheAdaptersReferences[] = new Reference($id);  | 
            ||
| 38 | }  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 41 | $container->getDefinition($subscriberId)  | 
            ||
| 42 | ->replaceArgument(0, $cacheAdaptersReferences);  | 
            ||
| 43 | }  | 
            ||
| 44 | }  | 
            ||
| 45 |