Differential D14251 Diff 34411 src/applications/drydock/application/PhabricatorDrydockApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/application/PhabricatorDrydockApplication.php
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | return array( | ||||
'(?P<id>[1-9]\d*)/' => array( | '(?P<id>[1-9]\d*)/' => array( | ||||
'' => 'DrydockBlueprintViewController', | '' => 'DrydockBlueprintViewController', | ||||
'(?P<action>disable|enable)/' => | '(?P<action>disable|enable)/' => | ||||
'DrydockBlueprintDisableController', | 'DrydockBlueprintDisableController', | ||||
'resources/(?:query/(?P<queryKey>[^/]+)/)?' => | 'resources/(?:query/(?P<queryKey>[^/]+)/)?' => | ||||
'DrydockResourceListController', | 'DrydockResourceListController', | ||||
'logs/(?:query/(?P<queryKey>[^/]+)/)?' => | 'logs/(?:query/(?P<queryKey>[^/]+)/)?' => | ||||
'DrydockLogListController', | 'DrydockLogListController', | ||||
'authorizations/(?:query/(?P<queryKey>[^/]+)/)?' => | |||||
'DrydockAuthorizationListController', | |||||
), | ), | ||||
'create/' => 'DrydockBlueprintCreateController', | 'create/' => 'DrydockBlueprintCreateController', | ||||
'edit/(?:(?P<id>[1-9]\d*)/)?' => 'DrydockBlueprintEditController', | 'edit/(?:(?P<id>[1-9]\d*)/)?' => 'DrydockBlueprintEditController', | ||||
), | ), | ||||
'(?P<type>resource)/' => array( | '(?P<type>resource)/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' => 'DrydockResourceListController', | '(?:query/(?P<queryKey>[^/]+)/)?' => 'DrydockResourceListController', | ||||
'(?P<id>[1-9]\d*)/' => array( | '(?P<id>[1-9]\d*)/' => array( | ||||
'' => 'DrydockResourceViewController', | '' => 'DrydockResourceViewController', | ||||
'release/' => 'DrydockResourceReleaseController', | 'release/' => 'DrydockResourceReleaseController', | ||||
'leases/(?:query/(?P<queryKey>[^/]+)/)?' => | 'leases/(?:query/(?P<queryKey>[^/]+)/)?' => | ||||
'DrydockLeaseListController', | 'DrydockLeaseListController', | ||||
'logs/(?:query/(?P<queryKey>[^/]+)/)?' => | 'logs/(?:query/(?P<queryKey>[^/]+)/)?' => | ||||
'DrydockLogListController', | 'DrydockLogListController', | ||||
), | ), | ||||
), | ), | ||||
'(?P<type>lease)/' => array( | '(?P<type>lease)/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' => 'DrydockLeaseListController', | '(?:query/(?P<queryKey>[^/]+)/)?' => 'DrydockLeaseListController', | ||||
'(?P<id>[1-9]\d*)/' => array( | '(?P<id>[1-9]\d*)/' => array( | ||||
'' => 'DrydockLeaseViewController', | '' => 'DrydockLeaseViewController', | ||||
'release/' => 'DrydockLeaseReleaseController', | 'release/' => 'DrydockLeaseReleaseController', | ||||
'logs/(?:query/(?P<queryKey>[^/]+)/)?' => | 'logs/(?:query/(?P<queryKey>[^/]+)/)?' => | ||||
'DrydockLogListController', | 'DrydockLogListController', | ||||
), | ), | ||||
), | ), | ||||
'(?P<type>authorization)/' => array( | |||||
'(?P<id>[1-9]\d*)/' => array( | |||||
'' => 'DrydockAuthorizationViewController', | |||||
'(?P<action>authorize|decline)/' => | |||||
'DrydockAuthorizationAuthorizeController', | |||||
), | |||||
), | |||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | protected function getCustomCapabilities() { | ||||
return array( | return array( | ||||
DrydockDefaultViewCapability::CAPABILITY => array( | DrydockDefaultViewCapability::CAPABILITY => array( | ||||
'template' => DrydockBlueprintPHIDType::TYPECONST, | 'template' => DrydockBlueprintPHIDType::TYPECONST, | ||||
Show All 14 Lines |