Refactored structure
This commit is contained in:
parent
e5164ae1dd
commit
548a49a3de
19 changed files with 44 additions and 62 deletions
|
|
@ -110,7 +110,7 @@ class Builder implements LoggerAwareInterface
|
|||
$this->buildLogger = new BuildLogger($logger, $build);
|
||||
|
||||
$pluginFactory = $this->buildPluginFactory($build);
|
||||
$pluginFactory->addConfigFromFile(PHPCI_DIR . "/pluginconfig.php");
|
||||
$pluginFactory->addConfigFromFile(PHPCI_DIR . "/app/pluginconfig.php");
|
||||
$this->pluginExecutor = new Plugin\Util\Executor($pluginFactory, $this->buildLogger);
|
||||
|
||||
$executorClass = 'PHPCI\Helper\UnixCommandExecutor';
|
||||
|
|
|
|||
|
|
@ -364,7 +364,7 @@ class InstallCommand extends Command
|
|||
$output->write(Lang::get('setting_up_db'));
|
||||
|
||||
$phinxBinary = escapeshellarg(PHPCI_DIR . 'vendor/bin/phinx');
|
||||
$phinxScript = escapeshellarg(PHPCI_DIR . 'phinx.php');
|
||||
$phinxScript = escapeshellarg(PHPCI_DIR . 'app/phinx.php');
|
||||
shell_exec($phinxBinary . ' migrate -c ' . $phinxScript);
|
||||
|
||||
$output->writeln('<info>'.Lang::get('ok').'</info>');
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class UpdateCommand extends Command
|
|||
|
||||
$output->write(Lang::get('updating_phpci'));
|
||||
|
||||
shell_exec(PHPCI_DIR . 'vendor/bin/phinx migrate -c "' . PHPCI_DIR . 'phinx.php"');
|
||||
shell_exec(PHPCI_DIR . 'vendor/bin/phinx migrate -c "' . PHPCI_DIR . 'app/phinx.php"');
|
||||
|
||||
$output->writeln('<info>'.Lang::get('ok').'</info>');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue