mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-27 05:59:08 +01:00
Summary: - Ports MySQL settings to PHP. - Removes "mysql.retries" -- this existed only because Magic Numbers Are Bad, but there is no concievable reason it should ever be set to anything other than 3. - Introduced "Hidden" config, which isn't visible from the web (for SaaS, we'll just mark anything with secret keys as "hidden"). - Introduced "Masked" config, which will be masked in darkconsole once that gets updated. - "Hidden" implies "Masked" and "Locked". - Moved "storage.default-namespace" here -- it probably makes more sense than core; this was my bad in T2255. - Put cancel button back for hidden/locked config. - Introduce 'class' config type. Test Plan: Viewed MySQL options. None are editable. Reviewers: codeblock, btrahan Reviewed By: codeblock CC: aran Maniphest Tasks: T2255 Differential Revision: https://secure.phabricator.com/D4326
43 lines
1.5 KiB
PHP
43 lines
1.5 KiB
PHP
<?php
|
|
|
|
final class PhabricatorExtendingPhabricatorConfigOptions
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
public function getName() {
|
|
return pht("Extending Phabricator");
|
|
}
|
|
|
|
public function getDescription() {
|
|
return pht("Make Phabricator even cooler!");
|
|
}
|
|
|
|
public function getOptions() {
|
|
return array(
|
|
$this->newOption('load-libraries', 'list<string>', null)
|
|
->setSummary(pht("Paths to additional phutil libraries to load."))
|
|
->addExample('/srv/our-libs/sekrit-phutil', pht('Valid Setting')),
|
|
$this->newOption('events.listeners', 'list<string>', null)
|
|
->setSummary(
|
|
pht("Listeners receive callbacks when interesting things occur."))
|
|
->setDescription(
|
|
pht(
|
|
"You can respond to various application events by installing ".
|
|
"listeners, which will receive callbacks when interesting things ".
|
|
"occur. Specify a list of classes which extend ".
|
|
"PhabricatorEventListener here."))
|
|
->addExample('MyEventListener', pht('Valid Setting')),
|
|
$this->newOption(
|
|
'celerity.resource-path',
|
|
'string',
|
|
'__celerity_resource_map__.php')
|
|
->setSummary(
|
|
pht("Custom celerity resource map."))
|
|
->setDescription(
|
|
pht(
|
|
"Path to custom celerity resource map relative to ".
|
|
"'phabricator/src'. See also `scripts/celerity_mapper.php`."))
|
|
->addExample('local/my_celerity_map.php', pht('Valid Setting')),
|
|
);
|
|
}
|
|
|
|
}
|