Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / owners / application / PhabricatorOwnersApplication.php
blob3ef5f974d9caf238295d6441df14227ab8bd9469
1 <?php
3 final class PhabricatorOwnersApplication extends PhabricatorApplication {
5 public function getName() {
6 return pht('Owners');
9 public function getBaseURI() {
10 return '/owners/';
13 public function getIcon() {
14 return 'fa-gift';
17 public function getShortDescription() {
18 return pht('Own Source Code');
21 public function getTitleGlyph() {
22 return "\xE2\x98\x81";
25 public function getHelpDocumentationArticles(PhabricatorUser $viewer) {
26 return array(
27 array(
28 'name' => pht('Owners User Guide'),
29 'href' => PhabricatorEnv::getDoclink('Owners User Guide'),
34 public function getFlavorText() {
35 return pht('Adopt today!');
38 public function getApplicationGroup() {
39 return self::GROUP_UTILITIES;
42 public function getRemarkupRules() {
43 return array(
44 new PhabricatorOwnersPackageRemarkupRule(),
48 public function getRoutes() {
49 return array(
50 '/owners/' => array(
51 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorOwnersListController',
52 'new/' => 'PhabricatorOwnersEditController',
53 'package/(?P<id>[1-9]\d*)/' => 'PhabricatorOwnersDetailController',
54 'archive/(?P<id>[1-9]\d*)/' => 'PhabricatorOwnersArchiveController',
55 'paths/(?P<id>[1-9]\d*)/' => 'PhabricatorOwnersPathsController',
57 $this->getEditRoutePattern('edit/')
58 => 'PhabricatorOwnersEditController',
63 protected function getCustomCapabilities() {
64 return array(
65 PhabricatorOwnersDefaultViewCapability::CAPABILITY => array(
66 'caption' => pht('Default view policy for newly created packages.'),
67 'template' => PhabricatorOwnersPackagePHIDType::TYPECONST,
68 'capability' => PhabricatorPolicyCapability::CAN_VIEW,
70 PhabricatorOwnersDefaultEditCapability::CAPABILITY => array(
71 'caption' => pht('Default edit policy for newly created packages.'),
72 'template' => PhabricatorOwnersPackagePHIDType::TYPECONST,
73 'capability' => PhabricatorPolicyCapability::CAN_EDIT,