1 | <?php |
||
14 | class PhpMigrationRunner extends AbstractMigrationRunner |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Returns supported file extension. |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | 150 | public function getFileExtension() |
|
26 | |||
27 | /** |
||
28 | * Runs the migration. |
||
29 | * |
||
30 | * @param string $migration_file Migration file. |
||
31 | * @param MigrationContext $context Migration context. |
||
32 | * |
||
33 | * @return void |
||
34 | * @throws \LogicException When migration doesn't contain a closure. |
||
35 | */ |
||
36 | 149 | public function run($migration_file, MigrationContext $context) |
|
46 | |||
47 | /** |
||
48 | * Returns new migration template. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | 1 | public function getTemplate() |
|
63 | |||
64 | } |
||
65 |