| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function __invoke(ContainerInterface $container) |
||
| 21 | { |
||
| 22 | $helper = new CycleOrmHelper( |
||
| 23 | $container->get(DatabaseManager::class), |
||
| 24 | $container->get(CacheInterface::class), |
||
| 25 | $container->get(SchemaConveyorInterface::class) |
||
| 26 | ); |
||
| 27 | |||
| 28 | if (isset($this->params['cacheKey'])) { |
||
| 29 | $helper->setCacheKey($this->params['cacheKey']); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $helper; |
||
| 33 | } |
||
| 35 |