2013-01-03 00:52:30 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorExtendingPhabricatorConfigOptions
|
|
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
|
|
|
|
public function getName() {
|
2014-06-09 20:36:49 +02:00
|
|
|
return pht('Extending Phabricator');
|
2013-01-03 00:52:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getDescription() {
|
2014-06-09 20:36:49 +02:00
|
|
|
return pht('Make Phabricator even cooler!');
|
2013-01-03 00:52:30 +01:00
|
|
|
}
|
|
|
|
|
2016-01-28 17:40:22 +01:00
|
|
|
public function getIcon() {
|
2015-02-02 19:17:25 +01:00
|
|
|
return 'fa-rocket';
|
|
|
|
}
|
|
|
|
|
2015-02-09 22:10:56 +01:00
|
|
|
public function getGroup() {
|
|
|
|
return 'core';
|
|
|
|
}
|
|
|
|
|
2013-01-03 00:52:30 +01:00
|
|
|
public function getOptions() {
|
|
|
|
return array(
|
2013-01-23 22:12:23 +01:00
|
|
|
$this->newOption('load-libraries', 'list<string>', array())
|
2013-01-18 03:59:58 +01:00
|
|
|
->setLocked(true)
|
2014-06-09 20:36:49 +02:00
|
|
|
->setSummary(pht('Paths to additional phutil libraries to load.'))
|
2013-01-03 15:01:14 +01:00
|
|
|
->addExample('/srv/our-libs/sekrit-phutil', pht('Valid Setting')),
|
2013-01-23 22:12:23 +01:00
|
|
|
$this->newOption('events.listeners', 'list<string>', array())
|
2013-01-18 03:59:58 +01:00
|
|
|
->setLocked(true)
|
2013-01-03 00:52:30 +01:00
|
|
|
->setSummary(
|
2014-06-09 20:36:49 +02:00
|
|
|
pht('Listeners receive callbacks when interesting things occur.'))
|
2013-01-03 00:52:30 +01:00
|
|
|
->setDescription(
|
|
|
|
pht(
|
2014-06-09 20:36:49 +02:00
|
|
|
'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.'))
|
2013-01-03 15:01:14 +01:00
|
|
|
->addExample('MyEventListener', pht('Valid Setting')),
|
2013-01-14 00:10:31 +01:00
|
|
|
$this->newOption(
|
|
|
|
'aphront.default-application-configuration-class',
|
|
|
|
'class',
|
|
|
|
'AphrontDefaultApplicationConfiguration')
|
2014-05-01 19:23:49 +02:00
|
|
|
->setLocked(true)
|
2013-01-14 00:10:31 +01:00
|
|
|
->setBaseClass('AphrontApplicationConfiguration')
|
|
|
|
// TODO: This could probably use some better documentation.
|
2014-06-09 20:36:49 +02:00
|
|
|
->setDescription(pht('Application configuration class.')),
|
2013-01-03 00:52:30 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|