Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function createVersion(string $migrationClassName) : AbstractMigration |
||
31 | { |
||
32 | $migration = new $migrationClassName( |
||
33 | $this->connection, |
||
34 | $this->logger |
||
35 | ); |
||
36 | |||
37 | // or you can ommit this check |
||
38 | if ($migration instanceof EntityManagerAwareInterface) { |
||
39 | $migration->setEntityManager($this->em); |
||
40 | } |
||
41 | |||
42 | return $migration; |
||
43 | } |
||
44 | } |
||
45 |