Differential D7368 Diff 16627 src/applications/harbormaster/application/PhabricatorApplicationHarbormaster.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/application/PhabricatorApplicationHarbormaster.php
- This file was added.
<?php | |||||
final class PhabricatorApplicationHarbormaster extends PhabricatorApplication { | |||||
public function getBaseURI() { | |||||
return '/harbormaster/'; | |||||
} | |||||
public function getShortDescription() { | |||||
return pht('Continuous Build'); | |||||
} | |||||
public function getIconName() { | |||||
return 'harbormaster'; | |||||
} | |||||
public function getTitleGlyph() { | |||||
return "\xE2\x99\xBB"; | |||||
} | |||||
public function getFlavorText() { | |||||
return pht('Ship Some Freight'); | |||||
} | |||||
public function getApplicationGroup() { | |||||
return self::GROUP_UTILITIES; | |||||
} | |||||
public function isBeta() { | |||||
return true; | |||||
} | |||||
public function getRemarkupRules() { | |||||
return array( | |||||
new HarbormasterRemarkupRule(), | |||||
); | |||||
} | |||||
public function getRoutes() { | |||||
return array( | |||||
'/B(?P<id>[1-9]\d*)' => 'HarbormasterBuildableViewController', | |||||
'/harbormaster/' => array( | |||||
'(?:query/(?P<queryKey>[^/]+)/)?' | |||||
=> 'HarbormasterBuildableListController', | |||||
'buildable/' => array( | |||||
'edit/(?:(?P<id>\d+)/)?' => 'HarbormasterBuildableEditController', | |||||
), | |||||
'plan/' => array( | |||||
'(?:query/(?P<queryKey>[^/]+)/)?' | |||||
=> 'HarbormasterPlanListController', | |||||
'edit/(?:(?P<id>\d+)/)?' => 'HarbormasterPlanEditController', | |||||
'(?P<id>\d+)/' => 'HarbormasterPlanViewController', | |||||
'execute/(?P<id>\d+)/' => 'HarbormasterPlanExecuteController', | |||||
), | |||||
), | |||||
); | |||||
} | |||||
public function getCustomCapabilities() { | |||||
return array( | |||||
HarbormasterCapabilityManagePlans::CAPABILITY => array( | |||||
'caption' => pht('Can create and manage build plans.'), | |||||
'default' => PhabricatorPolicies::POLICY_ADMIN, | |||||
), | |||||
); | |||||
} | |||||
} |