Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/config/option/PhabricatorExtendingPhabricatorConfigOptions.php
12256 views
1
<?php
2
3
final class PhabricatorExtendingPhabricatorConfigOptions
4
extends PhabricatorApplicationConfigOptions {
5
6
public function getName() {
7
return pht('Extensions');
8
}
9
10
public function getDescription() {
11
return pht('Manage extensions.');
12
}
13
14
public function getIcon() {
15
return 'fa-rocket';
16
}
17
18
public function getGroup() {
19
return 'core';
20
}
21
22
public function getOptions() {
23
return array(
24
$this->newOption('load-libraries', 'list<string>', array())
25
->setLocked(true)
26
->setSummary(pht('Paths to additional phutil libraries to load.'))
27
->addExample('/srv/our-libs/sekrit-phutil', pht('Valid Setting')),
28
$this->newOption('events.listeners', 'list<string>', array())
29
->setLocked(true)
30
->setSummary(
31
pht('Listeners receive callbacks when interesting things occur.'))
32
->setDescription(
33
pht(
34
'You can respond to various application events by installing '.
35
'listeners, which will receive callbacks when interesting things '.
36
'occur. Specify a list of classes which extend '.
37
'PhabricatorEventListener here.'))
38
->addExample('MyEventListener', pht('Valid Setting')),
39
);
40
}
41
42
}
43
44