Page MenuHomec4science

PhabricatorSetupCheckInvalidConfig.php
No OneTemporary

File Metadata

Created
Thu, Nov 14, 01:46

PhabricatorSetupCheckInvalidConfig.php

<?php
final class PhabricatorSetupCheckInvalidConfig extends PhabricatorSetupCheck {
protected function executeChecks() {
$groups = PhabricatorApplicationConfigOptions::loadAll();
foreach ($groups as $group) {
$options = $group->getOptions();
foreach ($options as $option) {
try {
$group->validateOption(
$option,
PhabricatorEnv::getUnrepairedEnvConfig($option->getKey()));
} catch (PhabricatorConfigValidationException $ex) {
$this
->newIssue('config.invalid.'.$option->getKey())
->setName(pht("Config '%s' Invalid", $option->getKey()))
->setMessage(
pht(
"Configuration option '%s' has invalid value and ".
"was restored to the default: %s",
$option->getKey(),
$ex->getMessage()))
->addPhabricatorConfig($option->getKey());
}
}
}
}
}

Event Timeline