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