added installation command (#838)

This commit is contained in:
Kevin Papst
2019-06-04 23:51:37 +02:00
committed by GitHub
parent 97feed0be6
commit 325d204332
12 changed files with 542 additions and 32 deletions

View File

@@ -103,6 +103,17 @@ EOT
return 4;
}
try {
$command = $this->getApplication()->find('doctrine:migrations:version');
$cmdInput = new ArrayInput(['--add' => true, '--all' => true]);
$cmdInput->setInteractive(false);
$command->run($cmdInput, $output);
} catch (\Exception $ex) {
$io->error('Failed to set migration status: ' . $ex->getMessage());
return 5;
}
if (!$input->getOption('no-cache')) {
$command = $this->getApplication()->find('cache:clear');
try {
@@ -110,7 +121,7 @@ EOT
} catch (\Exception $ex) {
$io->error('Failed to clear cache: ' . $ex->getMessage());
return 5;
return 6;
}
}