| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 14 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 44 | public function onKernelTerminate() | ||
| 45 |     { | ||
| 46 |         foreach ($this->managers as $key => $value) { | ||
| 47 |             if ($value['force_commit']) { | ||
| 48 |                 try { | ||
| 49 | /** @var Manager $manager */ | ||
| 50 |                     $manager = $this->container->get(sprintf('es.manager.%s', $key)); | ||
| 51 |                 } catch (\Exception $e) { | ||
| 52 | continue; | ||
| 53 | } | ||
| 54 | $manager->commit(); | ||
| 55 | } | ||
| 56 | } | ||
| 57 | } | ||
| 58 | } | ||
| 59 |