Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/application/PhabricatorHeraldApplication.php
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | return array( | ||||
| => 'HeraldDisableController', | => 'HeraldDisableController', | ||||
| 'test/' => 'HeraldTestConsoleController', | 'test/' => 'HeraldTestConsoleController', | ||||
| 'transcript/' => array( | 'transcript/' => array( | ||||
| '' => 'HeraldTranscriptListController', | '' => 'HeraldTranscriptListController', | ||||
| '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldTranscriptListController', | '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldTranscriptListController', | ||||
| '(?P<id>[1-9]\d*)/' | '(?P<id>[1-9]\d*)/' | ||||
| => 'HeraldTranscriptController', | => 'HeraldTranscriptController', | ||||
| ), | ), | ||||
| 'webhook/' => array( | |||||
| $this->getQueryRoutePattern() => 'HeraldWebhookListController', | |||||
| 'view/(?P<id>\d+)/(?:request/(?P<requestID>[^/]+)/)?' => | |||||
| 'HeraldWebhookViewController', | |||||
| $this->getEditRoutePattern('edit/') => 'HeraldWebhookEditController', | |||||
| 'test/(?P<id>\d+)/' => 'HeraldWebhookTestController', | |||||
| 'key/' => array( | |||||
| 'view/(?P<id>\d+)/' => 'HeraldWebhookViewKeyController', | |||||
| 'cycle/(?P<id>\d+)/' => 'HeraldWebhookCycleKeyController', | |||||
| ), | |||||
| ), | |||||
| ), | ), | ||||
| ); | ); | ||||
| } | } | ||||
| protected function getCustomCapabilities() { | protected function getCustomCapabilities() { | ||||
| return array( | return array( | ||||
| HeraldManageGlobalRulesCapability::CAPABILITY => array( | HeraldManageGlobalRulesCapability::CAPABILITY => array( | ||||
| 'caption' => pht('Global rules can bypass access controls.'), | 'caption' => pht('Global rules can bypass access controls.'), | ||||
| 'default' => PhabricatorPolicies::POLICY_ADMIN, | 'default' => PhabricatorPolicies::POLICY_ADMIN, | ||||
| ), | ), | ||||
| HeraldCreateWebhooksCapability::CAPABILITY => array( | |||||
| 'default' => PhabricatorPolicies::POLICY_ADMIN, | |||||
| ), | |||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||