Differential D7715 Diff 17446 src/applications/harbormaster/application/PhabricatorApplicationHarbormaster.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/application/PhabricatorApplicationHarbormaster.php
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | return array( | ||||
'build/' => array( | 'build/' => array( | ||||
'(?:(?P<id>\d+)/)?' => 'HarbormasterBuildViewController', | '(?:(?P<id>\d+)/)?' => 'HarbormasterBuildViewController', | ||||
'cancel/(?:(?P<id>\d+)/)?' => 'HarbormasterBuildCancelController', | 'cancel/(?:(?P<id>\d+)/)?' => 'HarbormasterBuildCancelController', | ||||
), | ), | ||||
'plan/' => array( | 'plan/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' | '(?:query/(?P<queryKey>[^/]+)/)?' | ||||
=> 'HarbormasterPlanListController', | => 'HarbormasterPlanListController', | ||||
'edit/(?:(?P<id>\d+)/)?' => 'HarbormasterPlanEditController', | 'edit/(?:(?P<id>\d+)/)?' => 'HarbormasterPlanEditController', | ||||
'order/(?:(?P<id>\d+)/)?' => 'HarbormasterPlanOrderController', | |||||
'(?P<id>\d+)/' => 'HarbormasterPlanViewController', | '(?P<id>\d+)/' => 'HarbormasterPlanViewController', | ||||
), | ), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function getCustomCapabilities() { | public function getCustomCapabilities() { | ||||
return array( | return array( | ||||
HarbormasterCapabilityManagePlans::CAPABILITY => array( | HarbormasterCapabilityManagePlans::CAPABILITY => array( | ||||
'caption' => pht('Can create and manage build plans.'), | 'caption' => pht('Can create and manage build plans.'), | ||||
'default' => PhabricatorPolicies::POLICY_ADMIN, | 'default' => PhabricatorPolicies::POLICY_ADMIN, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
} | } |