We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5702983 commit 82e99d3Copy full SHA for 82e99d3
setup/src/Magento/Setup/Console/Command/DiCompileCommand.php
@@ -107,8 +107,10 @@ protected function configure()
107
private function checkEnvironment()
108
{
109
$messages = [];
110
- if (!$this->deploymentConfig->isAvailable()) {
111
- $messages[] = 'You cannot run this command because the Magento application is not installed.';
+ $config = $this->deploymentConfig->get(\Magento\Framework\Config\ConfigOptionsListConstants::KEY_MODULES);
+ 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.';
114
}
115
116
/**
0 commit comments