diff --git a/src/Platform/Console/Command/Stack/InitCommand.php b/src/Platform/Console/Command/Stack/InitCommand.php index 1f00d07..33c40a7 100644 --- a/src/Platform/Console/Command/Stack/InitCommand.php +++ b/src/Platform/Console/Command/Stack/InitCommand.php @@ -76,7 +76,10 @@ protected function execute(InputInterface $input, OutputInterface $output) ])); $builder = new StackBuilder( - new OroPlatform\Builder(new Repository($input->getOption('php-repository')), $this->stacksPath), + new OroPlatform\Builder( + new Repository($input->getOption('php-repository')), + $this->stacksPath + ), ); $stack = $builder->build($context); diff --git a/src/Platform/Console/Command/Stack/UpgradeCommand.php b/src/Platform/Console/Command/Stack/UpgradeCommand.php index f8f65f2..7e3479b 100644 --- a/src/Platform/Console/Command/Stack/UpgradeCommand.php +++ b/src/Platform/Console/Command/Stack/UpgradeCommand.php @@ -2,6 +2,7 @@ namespace Kiboko\Cloud\Platform\Console\Command\Stack; +use Kiboko\Cloud\Domain\Packaging\Repository; use Kiboko\Cloud\Domain\Stack\DTO\Context; use Kiboko\Cloud\Domain\Stack\OroPlatform; use Kiboko\Cloud\Domain\Stack\StackBuilder; @@ -89,7 +90,10 @@ protected function execute(InputInterface $input, OutputInterface $output) } $builder = new StackBuilder( - new OroPlatform\Builder($this->stacksPath), + new OroPlatform\Builder( + new Repository($input->getOption('php-repository')), + $this->stacksPath + ), ); $stack = $builder->build($context);