Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / countdown / application / PhabricatorCountdownApplication.php
blobb3b5a79da26797e7c60939d4d0d37ca6289a0010
1 <?php
3 final class PhabricatorCountdownApplication extends PhabricatorApplication {
5 public function getBaseURI() {
6 return '/countdown/';
9 public function getIcon() {
10 return 'fa-rocket';
13 public function getName() {
14 return pht('Countdown');
17 public function getShortDescription() {
18 return pht('Countdown to Events');
21 public function getTitleGlyph() {
22 return "\xE2\x9A\xB2";
25 public function getFlavorText() {
26 return pht('Utilize the full capabilities of your ALU.');
29 public function getApplicationGroup() {
30 return self::GROUP_UTILITIES;
33 public function getRemarkupRules() {
34 return array(
35 new PhabricatorCountdownRemarkupRule(),
39 public function getRoutes() {
40 return array(
41 '/C(?P<id>[1-9]\d*)' => 'PhabricatorCountdownViewController',
42 '/countdown/' => array(
43 '(?:query/(?P<queryKey>[^/]+)/)?'
44 => 'PhabricatorCountdownListController',
45 $this->getEditRoutePattern('edit/')
46 => 'PhabricatorCountdownEditController',
51 protected function getCustomCapabilities() {
52 return array(
53 PhabricatorCountdownDefaultViewCapability::CAPABILITY => array(
54 'caption' => pht('Default view policy for new countdowns.'),
55 'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST,
56 'capability' => PhabricatorPolicyCapability::CAN_VIEW,
58 PhabricatorCountdownDefaultEditCapability::CAPABILITY => array(
59 'caption' => pht('Default edit policy for new countdowns.'),
60 'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST,
61 'capability' => PhabricatorPolicyCapability::CAN_EDIT,