[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/config/option/ -> PhabricatorExtendingPhabricatorConfigOptions.php (source)

   1  <?php
   2  
   3  final class PhabricatorExtendingPhabricatorConfigOptions
   4    extends PhabricatorApplicationConfigOptions {
   5  
   6    public function getName() {
   7      return pht('Extending Phabricator');
   8    }
   9  
  10    public function getDescription() {
  11      return pht('Make Phabricator even cooler!');
  12    }
  13  
  14    public function getOptions() {
  15      return array(
  16        $this->newOption('load-libraries', 'list<string>', array())
  17          ->setLocked(true)
  18          ->setSummary(pht('Paths to additional phutil libraries to load.'))
  19          ->addExample('/srv/our-libs/sekrit-phutil', pht('Valid Setting')),
  20        $this->newOption('events.listeners', 'list<string>', array())
  21          ->setLocked(true)
  22          ->setSummary(
  23            pht('Listeners receive callbacks when interesting things occur.'))
  24          ->setDescription(
  25            pht(
  26              'You can respond to various application events by installing '.
  27              'listeners, which will receive callbacks when interesting things '.
  28              'occur. Specify a list of classes which extend '.
  29              'PhabricatorEventListener here.'))
  30          ->addExample('MyEventListener', pht('Valid Setting')),
  31         $this->newOption(
  32           'aphront.default-application-configuration-class',
  33           'class',
  34           'AphrontDefaultApplicationConfiguration')
  35          ->setLocked(true)
  36          ->setBaseClass('AphrontApplicationConfiguration')
  37          // TODO: This could probably use some better documentation.
  38          ->setDescription(pht('Application configuration class.')),
  39      );
  40    }
  41  
  42  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1