3 final class PhabricatorOwnersApplication
extends PhabricatorApplication
{
5 public function getName() {
9 public function getBaseURI() {
13 public function getIcon() {
17 public function getShortDescription() {
18 return pht('Own Source Code');
21 public function getTitleGlyph() {
22 return "\xE2\x98\x81";
25 public function getHelpDocumentationArticles(PhabricatorUser
$viewer) {
28 'name' => pht('Owners User Guide'),
29 'href' => PhabricatorEnv
::getDoclink('Owners User Guide'),
34 public function getFlavorText() {
35 return pht('Adopt today!');
38 public function getApplicationGroup() {
39 return self
::GROUP_UTILITIES
;
42 public function getRemarkupRules() {
44 new PhabricatorOwnersPackageRemarkupRule(),
48 public function getRoutes() {
51 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorOwnersListController',
52 'new/' => 'PhabricatorOwnersEditController',
53 'package/(?P<id>[1-9]\d*)/' => 'PhabricatorOwnersDetailController',
54 'archive/(?P<id>[1-9]\d*)/' => 'PhabricatorOwnersArchiveController',
55 'paths/(?P<id>[1-9]\d*)/' => 'PhabricatorOwnersPathsController',
57 $this->getEditRoutePattern('edit/')
58 => 'PhabricatorOwnersEditController',
63 protected function getCustomCapabilities() {
65 PhabricatorOwnersDefaultViewCapability
::CAPABILITY
=> array(
66 'caption' => pht('Default view policy for newly created packages.'),
67 'template' => PhabricatorOwnersPackagePHIDType
::TYPECONST
,
68 'capability' => PhabricatorPolicyCapability
::CAN_VIEW
,
70 PhabricatorOwnersDefaultEditCapability
::CAPABILITY
=> array(
71 'caption' => pht('Default edit policy for newly created packages.'),
72 'template' => PhabricatorOwnersPackagePHIDType
::TYPECONST
,
73 'capability' => PhabricatorPolicyCapability
::CAN_EDIT
,