2012-10-05 13:18:05 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorApplicationSubscriptions extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function shouldAppearInLaunchView() {
|
|
|
|
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)/'.
|
|
|
|
'(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsEditController',
|
2014-03-14 11:22:00 -07:00
|
|
|
'list/(?P<phid>[^/]+)/' => 'PhabricatorSubscriptionsListController',
|
2014-03-14 14:27:45 -07:00
|
|
|
'transaction/(?P<type>add|rem)/(?<phid>[^/]+)/' =>
|
|
|
|
'PhabricatorSubscriptionsTransactionController',
|
2012-10-05 13:18:05 -07:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|