mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-23 21:18:19 +01:00
ab04d2179b
Summary: Ref T13053. See PHI126. Add an explicit "Mute" action to kill mail and notifications for a particular object. Test Plan: Muted and umuted an object while interacting with it. Saw mail route appropriately. Maniphest Tasks: T13053 Differential Revision: https://secure.phabricator.com/D19033
38 lines
918 B
PHP
38 lines
918 B
PHP
<?php
|
|
|
|
final class PhabricatorSubscriptionsApplication extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return pht('Subscriptions');
|
|
}
|
|
|
|
public function isLaunchable() {
|
|
return false;
|
|
}
|
|
|
|
public function canUninstall() {
|
|
return false;
|
|
}
|
|
|
|
public function getEventListeners() {
|
|
return array(
|
|
new PhabricatorSubscriptionsUIEventListener(),
|
|
);
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/subscriptions/' => array(
|
|
'(?P<action>add|delete)/'.
|
|
'(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsEditController',
|
|
'mute/' => array(
|
|
'(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsMuteController',
|
|
),
|
|
'list/(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsListController',
|
|
'transaction/(?P<type>add|rem)/(?<phid>[^/]+)/'
|
|
=> 'PhabricatorSubscriptionsTransactionController',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|