Path: blob/master/src/applications/config/option/PhabricatorNotificationConfigOptions.php
12256 views
<?php12final class PhabricatorNotificationConfigOptions3extends PhabricatorApplicationConfigOptions {45public function getName() {6return pht('Notifications');7}89public function getDescription() {10return pht('Configure real-time notifications.');11}1213public function getIcon() {14return 'fa-bell';15}1617public function getGroup() {18return 'core';19}2021public function getOptions() {22$servers_type = 'cluster.notifications';23$servers_help = $this->deformat(pht(<<<EOTEXT24Provide a list of notification servers to enable real-time notifications.2526For help setting up notification servers, see **[[ %s | %s ]]** in the27documentation.28EOTEXT29,30PhabricatorEnv::getDoclink(31'Notifications User Guide: Setup and Configuration'),32pht('Notifications User Guide: Setup and Configuration')));3334$servers_example1 = array(35array(36'type' => 'client',37'host' => 'phabricator.mycompany.com',38'port' => 22280,39'protocol' => 'https',40),41array(42'type' => 'admin',43'host' => '127.0.0.1',44'port' => 22281,45'protocol' => 'http',46),47);4849$servers_example1 = id(new PhutilJSON())->encodeAsList(50$servers_example1);5152return array(53$this->newOption('notification.servers', $servers_type, array())54->setHidden(true)55->setSummary(pht('Configure real-time notifications.'))56->setDescription($servers_help)57->addExample(58$servers_example1,59pht('Simple Example')),60);61}6263}646566