mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 03:02:43 +01:00
49c40d209d
Summary: Features! - Giving tokens. - Taking tokens back. - Not giving tokens. Test Plan: See screenshots. Reviewers: chad, vrana Reviewed By: chad CC: aran, btrahan Maniphest Tasks: T2541 Differential Revision: https://secure.phabricator.com/D4964
45 lines
872 B
PHP
45 lines
872 B
PHP
<?php
|
|
|
|
final class PhabricatorApplicationTokens extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return pht('Tokens');
|
|
}
|
|
|
|
public function isBeta() {
|
|
return true;
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/token/';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x99\xA6";
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Acquire Trinkets');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/token/' => array(
|
|
'' => 'PhabricatorTokenGivenController',
|
|
'given/' => 'PhabricatorTokenGivenController',
|
|
'give/(?<phid>[^/]+)/' => 'PhabricatorTokenGiveController',
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getEventListeners() {
|
|
return array(
|
|
new PhabricatorTokenUIEventListener(),
|
|
);
|
|
}
|
|
|
|
}
|