2013-02-15 16:47:14 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorApplicationTokens extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return pht('Tokens');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isBeta() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/token/';
|
|
|
|
}
|
|
|
|
|
2013-03-21 18:02:11 +01:00
|
|
|
public function getIconName() {
|
|
|
|
return 'token';
|
|
|
|
}
|
|
|
|
|
2013-02-15 16:47:14 +01:00
|
|
|
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(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|