2012-10-05 13:18:05 -07:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 10:03:09 +10:00
|
|
|
final class PhabricatorSubscriptionsApplication extends PhabricatorApplication {
|
2012-10-05 13:18:05 -07:00
|
|
|
|
2014-07-23 23:52:50 +10:00
|
|
|
public function getName() {
|
|
|
|
return pht('Subscriptions');
|
|
|
|
}
|
|
|
|
|
(Redesign) Clean up older "Tile" code
Summary:
This does some backend cleanup of the tile stuff, and some general cleanup of other application things:
- Users who haven't customized preferences get a small, specific set of pinned applications: Differential, Maniphest, Diffusion, Audit, Phriction, Projects (and, for administrators, Auth, Config and People).
- Old tile size methods are replaced with `isPinnnedByDefault()`.
- Shortened some short descriptions.
- `shouldAppearInLaunchView()` replaced by less ambiguous `isLaunchable()`.
- Added a marker for third-party / extension applications.
Test Plan: Faked away my preferences and viewed the home page, saw a smaller set of default pins.
Reviewers: chad
Reviewed By: chad
Subscribers: epriestley
Differential Revision: https://secure.phabricator.com/D9358
2014-06-03 15:47:27 -07:00
|
|
|
public function isLaunchable() {
|
2012-10-05 13:18:05 -07:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-01-29 09:14:03 -08:00
|
|
|
public function canUninstall() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-10-05 13:18:05 -07:00
|
|
|
public function getEventListeners() {
|
|
|
|
return array(
|
|
|
|
new PhabricatorSubscriptionsUIEventListener(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/subscriptions/' => array(
|
|
|
|
'(?P<action>add|delete)/'.
|
2018-02-08 10:37:47 -08:00
|
|
|
'(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsEditController',
|
|
|
|
'mute/' => array(
|
|
|
|
'(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsMuteController',
|
|
|
|
),
|
2014-03-14 11:22:00 -07:00
|
|
|
'list/(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsListController',
|
2014-07-23 10:03:09 +10:00
|
|
|
'transaction/(?P<type>add|rem)/(?<phid>[^/]+)/'
|
|
|
|
=> 'PhabricatorSubscriptionsTransactionController',
|
2012-10-05 13:18:05 -07:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|