3 final class PhabricatorNotificationConfigOptions
4 extends PhabricatorApplicationConfigOptions
{
6 public function getName() {
7 return pht('Notifications');
10 public function getDescription() {
11 return pht('Configure real-time notifications.');
14 public function getIcon() {
18 public function getGroup() {
22 public function getOptions() {
23 $servers_type = 'cluster.notifications';
24 $servers_help = $this->deformat(pht(<<<EOTEXT
25 Provide a list of notification servers to enable real-time notifications.
27 For help setting up notification servers, see **[[ %s | %s ]]** in the
31 PhabricatorEnv
::getDoclink(
32 'Notifications User Guide: Setup and Configuration'),
33 pht('Notifications User Guide: Setup and Configuration')));
35 $servers_example1 = array(
38 'host' => 'phabricator.mycompany.com',
40 'protocol' => 'https',
44 'host' => '127.0.0.1',
50 $servers_example1 = id(new PhutilJSON())->encodeAsList(
54 $this->newOption('notification.servers', $servers_type, array())
56 ->setSummary(pht('Configure real-time notifications.'))
57 ->setDescription($servers_help)
60 pht('Simple Example')),