@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorSubscriptionsApplication extends PhabricatorApplication {
4
5 public function getName() {
6 return pht('Subscriptions');
7 }
8
9 public function isLaunchable() {
10 return false;
11 }
12
13 public function canUninstall() {
14 return false;
15 }
16
17 public function getEventListeners() {
18 return array(
19 new PhabricatorSubscriptionsUIEventListener(),
20 );
21 }
22
23 public function getRoutes() {
24 return array(
25 '/subscriptions/' => array(
26 '(?P<action>add|delete)/'.
27 '(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsEditController',
28 'mute/' => array(
29 '(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsMuteController',
30 ),
31 'list/(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsListController',
32 'transaction/(?P<type>add|rem)/(?<phid>[^/]+)/'
33 => 'PhabricatorSubscriptionsTransactionController',
34 ),
35 );
36 }
37
38}