Skip to content

Commit

Permalink
Fixed Phinx proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk authored and Anton Shevchuk committed Oct 24, 2017
1 parent 6b4afd8 commit 3d7d31b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/Db/AbstractDbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ protected function execute(InputInterface $input, OutputInterface $output)

$phinxArguments['command'] = $commandName;
$phinxArguments['--configuration'] = PATH_APPLICATION . DS . 'configs' . DS . 'phinx.php';
$phinxArguments['--environment'] = 'default';
if ($command->getDefinition()->hasOption('environment')) {
$phinxArguments['--environment'] = 'default';
}

$phinxInput = new ArrayInput($phinxArguments);
$command->run($phinxInput, $output);
Expand Down

0 comments on commit 3d7d31b

Please sign in to comment.