Skip to content

Commit 66a7911

Browse files
MAGETWO-55903: Prepare PR
1 parent 9238a26 commit 66a7911

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

setup/src/Magento/Setup/Model/ObjectManagerProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Magento\Setup\Model;
88

9-
use Magento\Framework\Console\Cli;
9+
use Symfony\Component\Console\Application;
1010
use Magento\Framework\Console\CommandListInterface;
1111
use Magento\Framework\ObjectManagerInterface;
1212
use Zend\ServiceManager\ServiceLocatorInterface;
@@ -78,7 +78,7 @@ private function createCliCommands()
7878
$commandList = $this->objectManager->create(CommandListInterface::class);
7979
foreach ($commandList->getCommands() as $command) {
8080
$command->setApplication(
81-
$this->serviceLocator->get(Cli::class)
81+
$this->serviceLocator->get(Application::class)
8282
);
8383
}
8484
}

setup/src/Magento/Setup/Test/Unit/Model/ObjectManagerProviderTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Magento\Framework\ObjectManagerInterface;
1515
use Magento\Framework\Console\CommandListInterface;
1616
use Symfony\Component\Console\Command\Command;
17-
use Magento\Framework\Console\Cli;
17+
use Symfony\Component\Console\Application;
1818

1919
/**
2020
* Class ObjectManagerProviderTest
@@ -54,7 +54,10 @@ public function testGet()
5454
->willReturnMap(
5555
[
5656
[InitParamListener::BOOTSTRAP_PARAM, $initParams],
57-
[Cli::class, $this->getMockBuilder(Cli::class)->disableOriginalConstructor()->getMock()],
57+
[
58+
Application::class,
59+
$this->getMockBuilder(Application::class)->disableOriginalConstructor()->getMock(),
60+
],
5861
]
5962
);
6063

0 commit comments

Comments
 (0)