Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / conpherence / application / PhabricatorConpherenceApplication.php
bloba0c21bd33a71638966d6b99ef3c2586b15e3b6c9
1 <?php
3 final class PhabricatorConpherenceApplication extends PhabricatorApplication {
5 public function getBaseURI() {
6 return '/conpherence/';
9 public function getName() {
10 return pht('Conpherence');
13 public function getShortDescription() {
14 return pht('Chat with Others');
17 public function getIcon() {
18 return 'fa-comments';
21 public function getTitleGlyph() {
22 return "\xE2\x9C\x86";
25 public function getRemarkupRules() {
26 return array(
27 new ConpherenceThreadRemarkupRule(),
31 public function getRoutes() {
32 return array(
33 '/Z(?P<id>[1-9]\d*)'
34 => 'ConpherenceViewController',
35 '/conpherence/' => array(
37 => 'ConpherenceListController',
38 'thread/(?P<id>[1-9]\d*)/'
39 => 'ConpherenceListController',
40 'threadsearch/(?P<id>[1-9]\d*)/'
41 => 'ConpherenceThreadSearchController',
42 '(?P<id>[1-9]\d*)/'
43 => 'ConpherenceViewController',
44 '(?P<id>[1-9]\d*)/(?P<messageID>[1-9]\d*)/'
45 => 'ConpherenceViewController',
46 'columnview/'
47 => 'ConpherenceColumnViewController',
48 $this->getEditRoutePattern('new/')
49 => 'ConpherenceRoomEditController',
50 $this->getEditRoutePattern('edit/')
51 => 'ConpherenceRoomEditController',
52 'picture/(?P<id>[1-9]\d*)/'
53 => 'ConpherenceRoomPictureController',
54 'search/(?:query/(?P<queryKey>[^/]+)/)?'
55 => 'ConpherenceRoomListController',
56 'panel/'
57 => 'ConpherenceNotificationPanelController',
58 'participant/(?P<id>[1-9]\d*)/'
59 => 'ConpherenceParticipantController',
60 'preferences/(?P<id>[1-9]\d*)/'
61 => 'ConpherenceRoomPreferencesController',
62 'update/(?P<id>[1-9]\d*)/'
63 => 'ConpherenceUpdateController',
68 public function getQuicksandURIPatternBlacklist() {
69 return array(
70 '/conpherence/.*',
71 '/Z\d+',
75 public function getMailCommandObjects() {
77 // TODO: Conpherence threads don't currently support any commands directly,
78 // so the documentation page we end up generating is empty and funny
79 // looking. Add support here once we support "!add", "!leave", "!topic",
80 // or whatever else.
82 return array();