Skip to content

Commit

Permalink
Fixed a parameter in the stack:upgrade command
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Dec 15, 2020
1 parent 22906d6 commit 84b6c9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Platform/Console/Command/Stack/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 5 additions & 1 deletion src/Platform/Console/Command/Stack/UpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 84b6c9f

Please sign in to comment.