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 6919941 commit 689fb1aCopy full SHA for 689fb1a
lib/internal/Magento/Framework/Console/Cli.php
@@ -187,14 +187,11 @@ private function assertGenerationPermissions()
187
GenerationDirectoryAccess::class,
188
['serviceManager' => $this->serviceManager]
189
);
190
- /** @var DeploymentConfig $deploymentConfig */
191
- $deploymentConfig = $this->objectManager->get(DeploymentConfig::class);
192
/** @var State $state */
193
$state = $this->objectManager->get(State::class);
194
195
if (
196
- $deploymentConfig->isAvailable()
197
- && $state->getMode() !== State::MODE_PRODUCTION
+ $state->getMode() !== State::MODE_PRODUCTION
198
&& !$generationDirectoryAccess->check()
199
) {
200
$this->writeGenerationDirectoryReadError();
0 commit comments