@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 81 lines 1.9 kB view raw
1<?php 2 3final class PhabricatorFundApplication extends PhabricatorApplication { 4 5 public function getName() { 6 return pht('Fund'); 7 } 8 9 public function getBaseURI() { 10 return '/fund/'; 11 } 12 13 public function getShortDescription() { 14 return pht('Donate'); 15 } 16 17 public function getIcon() { 18 return 'fa-heart'; 19 } 20 21 public function getTitleGlyph() { 22 return "\xE2\x99\xA5"; 23 } 24 25 public function getApplicationGroup() { 26 return self::GROUP_UTILITIES; 27 } 28 29 public function isPrototype() { 30 return true; 31 } 32 33 public function isDeprecated() { 34 return true; 35 } 36 37 public function getRemarkupRules() { 38 return array( 39 new FundInitiativeRemarkupRule(), 40 ); 41 } 42 43 public function getMonograms() { 44 return array('I'); 45 } 46 47 public function getRoutes() { 48 return array( 49 '/I(?P<id>[1-9]\d*)' => 'FundInitiativeViewController', 50 '/fund/' => array( 51 '(?:query/(?P<queryKey>[^/]+)/)?' => 'FundInitiativeListController', 52 'create/' => 'FundInitiativeEditController', 53 $this->getEditRoutePattern('edit/') 54 => 'FundInitiativeEditController', 55 'close/(?P<id>\d+)/' => 'FundInitiativeCloseController', 56 'back/(?P<id>\d+)/' => 'FundInitiativeBackController', 57 'backers/(?:(?P<id>\d+)/)?(?:query/(?P<queryKey>[^/]+)/)?' 58 => 'FundBackerListController', 59 ), 60 ); 61 } 62 63 protected function getCustomCapabilities() { 64 return array( 65 FundDefaultViewCapability::CAPABILITY => array( 66 'caption' => pht('Default view policy for newly created initiatives.'), 67 'template' => FundInitiativePHIDType::TYPECONST, 68 ), 69 FundCreateInitiativesCapability::CAPABILITY => array( 70 'default' => PhabricatorPolicies::POLICY_ADMIN, 71 ), 72 ); 73 } 74 75 public function getApplicationSearchDocumentTypes() { 76 return array( 77 FundInitiativePHIDType::TYPECONST, 78 ); 79 } 80 81}