mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 10:22:42 +01:00
86c399b657
Summary: Ref T5655. Some discussion in D9839. Generally speaking, `Phabricator{$name}Application` is clearer than `PhabricatorApplication{$name}`. Test Plan: # Pinned and uninstalled some applications. # Applied patch and performed migrations. # Verified that the pinned applications were still pinned and that the uninstalled applications were still uninstalled. # Performed a sanity check on the database contents. Reviewers: btrahan, epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: hach-que, epriestley, Korvin Maniphest Tasks: T5655 Differential Revision: https://secure.phabricator.com/D9982
46 lines
948 B
PHP
46 lines
948 B
PHP
<?php
|
|
|
|
final class PhabricatorTokensApplication extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return pht('Tokens');
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/token/';
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'token';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x99\xA6";
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Award and Acquire Trinkets');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/token/' => array(
|
|
'' => 'PhabricatorTokenGivenController',
|
|
'given/' => 'PhabricatorTokenGivenController',
|
|
'give/(?<phid>[^/]+)/' => 'PhabricatorTokenGiveController',
|
|
'leaders/' => 'PhabricatorTokenLeaderController',
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getEventListeners() {
|
|
return array(
|
|
new PhabricatorTokenUIEventListener(),
|
|
);
|
|
}
|
|
|
|
}
|