Skip to content

Commit 84b6c9f

Browse files
committed
Fixed a parameter in the stack:upgrade command
1 parent 22906d6 commit 84b6c9f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/Platform/Console/Command/Stack/InitCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
7676
]));
7777

7878
$builder = new StackBuilder(
79-
new OroPlatform\Builder(new Repository($input->getOption('php-repository')), $this->stacksPath),
79+
new OroPlatform\Builder(
80+
new Repository($input->getOption('php-repository')),
81+
$this->stacksPath
82+
),
8083
);
8184

8285
$stack = $builder->build($context);

src/Platform/Console/Command/Stack/UpgradeCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Kiboko\Cloud\Platform\Console\Command\Stack;
44

5+
use Kiboko\Cloud\Domain\Packaging\Repository;
56
use Kiboko\Cloud\Domain\Stack\DTO\Context;
67
use Kiboko\Cloud\Domain\Stack\OroPlatform;
78
use Kiboko\Cloud\Domain\Stack\StackBuilder;
@@ -89,7 +90,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
8990
}
9091

9192
$builder = new StackBuilder(
92-
new OroPlatform\Builder($this->stacksPath),
93+
new OroPlatform\Builder(
94+
new Repository($input->getOption('php-repository')),
95+
$this->stacksPath
96+
),
9397
);
9498

9599
$stack = $builder->build($context);

0 commit comments

Comments
 (0)