array( '(?:query/(?P[^/]+)/)?' => 'PhabricatorBadgesListController', 'award/(?:(?P\d+)/)?' => 'PhabricatorBadgesAwardController', 'create/' => 'PhabricatorBadgesEditController', 'comment/(?P[1-9]\d*)/' => 'PhabricatorBadgesCommentController', $this->getEditRoutePattern('edit/') => 'PhabricatorBadgesEditController', 'archive/(?:(?P\d+)/)?' => 'PhabricatorBadgesArchiveController', 'view/(?:(?P\d+)/)?' => 'PhabricatorBadgesViewController', 'recipients/' => array( '(?P[1-9]\d*)/' => 'PhabricatorBadgesRecipientsController', '(?P[1-9]\d*)/add/' => 'PhabricatorBadgesEditRecipientsController', '(?P[1-9]\d*)/remove/' => 'PhabricatorBadgesRemoveRecipientsController', ), ), ); } protected function getCustomCapabilities() { return array( PhabricatorBadgesCreateCapability::CAPABILITY => array( 'default' => PhabricatorPolicies::POLICY_ADMIN, 'caption' => pht('Default create policy for badges.'), ), PhabricatorBadgesDefaultEditCapability::CAPABILITY => array( 'default' => PhabricatorPolicies::POLICY_ADMIN, 'caption' => pht('Default edit policy for badges.'), 'template' => PhabricatorBadgesPHIDType::TYPECONST, ), ); } }