mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 08:12:40 +01:00
e4bb9255be
Summary: Permit the forcible release of Drydock leases. The implementation isn't very exciting for now. Test Plan: Released leases via web and CLI. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2015 Differential Revision: https://secure.phabricator.com/D4181
48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
<?php
|
|
|
|
final class PhabricatorApplicationDrydock extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/drydock/';
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return 'Allocate Software Resources';
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'drydock';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x98\x82";
|
|
}
|
|
|
|
public function getFlavorText() {
|
|
return pht('A nautical adventure.');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/drydock/' => array(
|
|
'' => 'DrydockResourceListController',
|
|
'resource/' => array(
|
|
'' => 'DrydockResourceListController',
|
|
'(?P<id>[1-9]\d*)/' => 'DrydockResourceViewController',
|
|
'(?P<id>[1-9]\d*)/close/' => 'DrydockResourceCloseController',
|
|
),
|
|
'lease/' => array(
|
|
'' => 'DrydockLeaseListController',
|
|
'(?P<id>[1-9]\d*)/' => 'DrydockLeaseViewController',
|
|
'(?P<id>[1-9]\d*)/release/' => 'DrydockLeaseReleaseController',
|
|
),
|
|
'log/' => 'DrydockLogController',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|