Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __invoke(ContainerInterface $container) |
||
22 | { |
||
23 | $dbal = $container->get(DatabaseManager::class); |
||
24 | |||
25 | $schema = new Schema( |
||
26 | $container->get(CycleOrmHelper::class)->getCurrentSchemaArray(true, $this->params['generators'] ?? []) |
||
27 | ); |
||
28 | |||
29 | return (new ORM(new Factory($dbal)))->withSchema($schema); |
||
30 | } |
||
32 |