Skip to content

Commit 82e99d3

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 5702983 commit 82e99d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ protected function configure()
107107
private function checkEnvironment()
108108
{
109109
$messages = [];
110-
if (!$this->deploymentConfig->isAvailable()) {
111-
$messages[] = 'You cannot run this command because the Magento application is not installed.';
110+
$config = $this->deploymentConfig->get(\Magento\Framework\Config\ConfigOptionsListConstants::KEY_MODULES);
111+
if (!$config) {
112+
$messages[] = 'You cannot run this command because modules are not enabled. You can enable modules by'
113+
. ' running module:enable --all command.';
112114
}
113115

114116
/**

0 commit comments

Comments
 (0)