mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-29 04:28:12 +01:00
Summary: Created Applications application which allows uninstallation & installation of application. Test Plan: In "Applications" application, clicked on uninstalled the application by cliking Uninstall and chekcing whether they are really uninstalled(Disabling URI & in appearance in the side pane). Then Clicked on the install button of the uninstalled application to check whether they are installed. Reviewers: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4715
29 lines
555 B
PHP
29 lines
555 B
PHP
<?php
|
|
|
|
final class PhabricatorApplicationSubscriptions extends PhabricatorApplication {
|
|
|
|
public function shouldAppearInLaunchView() {
|
|
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',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|
|
|