From 689fb1adbf36d52a2b24fcd3bacbaca1f097826d Mon Sep 17 00:00:00 2001 From: Oleh Posyniak <oposyniak@magento.com> Date: Tue, 10 Jan 2017 18:29:18 +0200 Subject: [PATCH] MAGETWO-62655: [GitHub] CLI won't work without write permissions #7933 --- lib/internal/Magento/Framework/Console/Cli.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/internal/Magento/Framework/Console/Cli.php b/lib/internal/Magento/Framework/Console/Cli.php index e61da02e284..30242b488b1 100644 --- a/lib/internal/Magento/Framework/Console/Cli.php +++ b/lib/internal/Magento/Framework/Console/Cli.php @@ -187,14 +187,11 @@ class Cli extends Console\Application GenerationDirectoryAccess::class, ['serviceManager' => $this->serviceManager] ); - /** @var DeploymentConfig $deploymentConfig */ - $deploymentConfig = $this->objectManager->get(DeploymentConfig::class); /** @var State $state */ $state = $this->objectManager->get(State::class); if ( - $deploymentConfig->isAvailable() - && $state->getMode() !== State::MODE_PRODUCTION + $state->getMode() !== State::MODE_PRODUCTION && !$generationDirectoryAccess->check() ) { $this->writeGenerationDirectoryReadError(); -- GitLab