From 84b6c9f4f211b5b528b5ddfab5e356761768c054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Planchat?= Date: Tue, 15 Dec 2020 17:37:21 +0100 Subject: [PATCH] Fixed a parameter in the stack:upgrade command --- src/Platform/Console/Command/Stack/InitCommand.php | 5 ++++- src/Platform/Console/Command/Stack/UpgradeCommand.php | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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);