Skip to content

Commit f09eba4

Browse files
Igor Melnikovvrann
authored andcommitted
MAGETWO-51592: Make single tenant compiler work when Magento not installed
Check if modules are installed instead of checking if Magento installed
1 parent 82e99d3 commit f09eba4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

setup/src/Magento/Setup/Console/Command/DiCompileCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
* Copyright © 2016 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\Setup\Console\Command;
87

8+
use Magento\Framework\ObjectManagerInterface;
9+
use Magento\Framework\Filesystem\DriverInterface;
10+
use Symfony\Component\Console\Input\InputInterface;
11+
use Symfony\Component\Console\Output\OutputInterface;
912
use Magento\Framework\Filesystem;
1013
use Magento\Framework\App\Filesystem\DirectoryList;
11-
use Magento\Framework\Filesystem\DriverInterface;
12-
use Magento\Framework\ObjectManagerInterface;
1314
use Magento\Framework\App\DeploymentConfig;
1415
use Magento\Framework\Component\ComponentRegistrar;
16+
use Magento\Framework\Config\ConfigOptionsListConstants;
1517
use Magento\Setup\Model\ObjectManagerProvider;
1618
use Magento\Setup\Module\Di\App\Task\Manager;
1719
use Magento\Setup\Module\Di\App\Task\OperationFactory;
1820
use Magento\Setup\Module\Di\App\Task\OperationException;
1921
use Magento\Setup\Module\Di\App\Task\OperationInterface;
2022
use Symfony\Component\Console\Command\Command;
2123
use Symfony\Component\Console\Helper\ProgressBar;
22-
use Symfony\Component\Console\Input\InputInterface;
23-
use Symfony\Component\Console\Output\OutputInterface;
2424

2525
/**
2626
* Command to run compile in single-tenant mode
@@ -107,7 +107,7 @@ protected function configure()
107107
private function checkEnvironment()
108108
{
109109
$messages = [];
110-
$config = $this->deploymentConfig->get(\Magento\Framework\Config\ConfigOptionsListConstants::KEY_MODULES);
110+
$config = $this->deploymentConfig->get(ConfigOptionsListConstants::KEY_MODULES);
111111
if (!$config) {
112112
$messages[] = 'You cannot run this command because modules are not enabled. You can enable modules by'
113113
. ' running module:enable --all command.';

0 commit comments

Comments
 (0)