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
49 lines
1.1 KiB
PHP
49 lines
1.1 KiB
PHP
<?php
|
|
|
|
final class PhabricatorApplicationDaemons extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return 'Daemons';
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return 'Manage Daemons';
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/daemon/';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x98\xAF";
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'daemon';
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_ADMIN;
|
|
}
|
|
|
|
public function canUninstall() {
|
|
return false;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/daemon/' => array(
|
|
'' => 'PhabricatorDaemonConsoleController',
|
|
'task/(?P<id>[1-9]\d*)/' => 'PhabricatorWorkerTaskDetailController',
|
|
'task/(?P<id>[1-9]\d*)/(?P<action>[^/]+)/'
|
|
=> 'PhabricatorWorkerTaskUpdateController',
|
|
'log/' => array(
|
|
'' => 'PhabricatorDaemonLogListController',
|
|
'combined/' => 'PhabricatorDaemonCombinedLogController',
|
|
'(?P<id>[1-9]\d*)/' => 'PhabricatorDaemonLogViewController',
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|