1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 16:46:15 +01:00
phorge-phorge/src/applications/fund/application/PhabricatorFundApplication.php

63 lines
1.4 KiB
PHP
Raw Normal View History

<?php
final class PhabricatorFundApplication extends PhabricatorApplication {
public function getName() {
return pht('Fund');
}
public function getBaseURI() {
return '/fund/';
}
public function getShortDescription() {
return pht('Donate');
}
public function getIconName() {
return 'phund';
}
public function getTitleGlyph() {
return "\xE2\x99\xA5";
}
public function getApplicationGroup() {
return self::GROUP_UTILITIES;
}
public function isBeta() {
return true;
}
public function getRemarkupRules() {
return array(
new FundInitiativeRemarkupRule(),
);
}
public function getRoutes() {
return array(
'/I(?P<id>[1-9]\d*)' => 'FundInitiativeViewController',
'/fund/' => array(
'(?:query/(?P<queryKey>[^/]+)/)?' => 'FundInitiativeListController',
'create/' => 'FundInitiativeEditController',
'edit/(?:(?P<id>[^/]+)/)?' => 'FundInitiativeEditController',
'close/(?P<id>[^/]+)/' => 'FundInitiativeCloseController',
),
);
}
protected function getCustomCapabilities() {
return array(
FundDefaultViewCapability::CAPABILITY => array(
'caption' => pht('Default view policy for newly created initiatives.'),
),
FundCreateInitiativesCapability::CAPABILITY => array(
'default' => PhabricatorPolicies::POLICY_ADMIN,
),
);
}
}