Differential D15671 Diff 37775 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | abstract class PhabricatorStorageManagementWorkflow | ||||
public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
$this->setDryRun($args->getArg('dryrun')); | $this->setDryRun($args->getArg('dryrun')); | ||||
$this->setForce($args->getArg('force')); | $this->setForce($args->getArg('force')); | ||||
if (PhabricatorEnv::isReadOnly()) { | if (PhabricatorEnv::isReadOnly()) { | ||||
if ($this->isForce()) { | if ($this->isForce()) { | ||||
PhabricatorEnv::setReadOnly(false); | PhabricatorEnv::setReadOnly(false, null); | ||||
} else { | } else { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Phabricator is currently in read-only mode. Use --force to '. | 'Phabricator is currently in read-only mode. Use --force to '. | ||||
'override this mode.')); | 'override this mode.')); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 883 Lines • Show Last 20 Lines |