Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 1 | public function __invoke(ContainerInterface $container): Migrator |
|
17 | { |
||
18 | 1 | $migConf = $container->get(MigrationConfig::class); |
|
19 | 1 | $dbal = $container->get(DatabaseManager::class); |
|
20 | |||
21 | 1 | $migrator = new Migrator( |
|
22 | 1 | $migConf, |
|
23 | 1 | $dbal, |
|
24 | 1 | new FileRepository($migConf, $container->get(FactoryInterface::class)) |
|
25 | 1 | ); |
|
26 | // Init migration table |
||
27 | 1 | $migrator->configure(); |
|
28 | 1 | return $migrator; |
|
29 | } |
||
31 |