Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/config/PhabricatorConduitConfigOptions.php
| <?php | <?php | ||||
| final class PhabricatorConduitConfigOptions | final class PhabricatorConduitConfigOptions | ||||
| extends PhabricatorApplicationConfigOptions { | extends PhabricatorApplicationConfigOptions { | ||||
| public function getName() { | public function getName() { | ||||
| return pht("Conduit"); | return pht('Conduit'); | ||||
| } | } | ||||
| public function getDescription() { | public function getDescription() { | ||||
| return pht("Configure conduit."); | return pht('Configure conduit.'); | ||||
| } | } | ||||
| public function getOptions() { | public function getOptions() { | ||||
| return array( | return array( | ||||
| $this->newOption("conduit.servers", "list<string>", array()) | $this->newOption('conduit.servers', 'list<string>', array()) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setSummary(pht("Servers that conduit can connect to.")) | ->setSummary(pht('Servers that conduit can connect to.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| "Set an array of servers where conduit can connect to. This is ". | "Set an array of servers where conduit can connect to. This is ". | ||||
| "an advanced option. Don't touch this unless you know what you ". | "an advanced option. Don't touch this unless you know what you ". | ||||
| "are doing.")) | "are doing.")) | ||||
| ->addExample( | ->addExample( | ||||
| '["http://phabricator2.example.com/", '. | '["http://phabricator2.example.com/", '. | ||||
| '"http://phabricator3.example.com/]"', | '"http://phabricator3.example.com/]"', | ||||
| pht('Valid Setting')), | pht('Valid Setting')), | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||