array( '(?:query/(?P[^/]+)/)?' => 'PhabricatorBadgesListController', 'create/' => 'PhabricatorBadgesEditController', 'edit/(?:(?P\d+)/)?' => 'PhabricatorBadgesEditController', 'view/(?:(?P\d+)/)?' => 'PhabricatorBadgesViewController', 'icon/(?P[1-9]\d*)/' => 'PhabricatorBadgesEditIconController', 'icon/' => 'PhabricatorBadgesEditIconController', 'recipients/(?P[1-9]\d*)/' => 'PhabricatorBadgesEditRecipientsController', 'recipients/(?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, ), PhabricatorBadgesDefaultViewCapability::CAPABILITY => array( 'caption' => pht('Default view policy for badges.'), 'template' => PhabricatorBadgesPHIDType::TYPECONST, ), ); } }