Differential D13251 Diff 32037 src/applications/project/application/PhabricatorProjectApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/application/PhabricatorProjectApplication.php
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | final class PhabricatorProjectApplication extends PhabricatorApplication { | ||||
protected function getCustomCapabilities() { | protected function getCustomCapabilities() { | ||||
return array( | return array( | ||||
ProjectCreateProjectsCapability::CAPABILITY => array(), | ProjectCreateProjectsCapability::CAPABILITY => array(), | ||||
ProjectCanLockProjectsCapability::CAPABILITY => array( | ProjectCanLockProjectsCapability::CAPABILITY => array( | ||||
'default' => PhabricatorPolicies::POLICY_ADMIN, | 'default' => PhabricatorPolicies::POLICY_ADMIN, | ||||
), | ), | ||||
ProjectDefaultViewCapability::CAPABILITY => array( | ProjectDefaultViewCapability::CAPABILITY => array( | ||||
'caption' => pht( | 'caption' => pht('Default view policy for newly created projects.'), | ||||
'Default view policy for newly created projects.'), | 'template' => PhabricatorProjectProjectPHIDType::TYPECONST, | ||||
), | ), | ||||
ProjectDefaultEditCapability::CAPABILITY => array( | ProjectDefaultEditCapability::CAPABILITY => array( | ||||
'caption' => pht( | 'caption' => pht('Default edit policy for newly created projects.'), | ||||
'Default edit policy for newly created projects.'), | 'template' => PhabricatorProjectProjectPHIDType::TYPECONST, | ||||
), | ), | ||||
ProjectDefaultJoinCapability::CAPABILITY => array( | ProjectDefaultJoinCapability::CAPABILITY => array( | ||||
'caption' => pht( | 'caption' => pht('Default join policy for newly created projects.'), | ||||
'Default join policy for newly created projects.'), | 'template' => PhabricatorProjectProjectPHIDType::TYPECONST, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function getApplicationSearchDocumentTypes() { | public function getApplicationSearchDocumentTypes() { | ||||
return array( | return array( | ||||
PhabricatorProjectProjectPHIDType::TYPECONST, | PhabricatorProjectProjectPHIDType::TYPECONST, | ||||
); | ); | ||||
} | } | ||||
} | } |