3 final class PhabricatorMacroApplication
extends PhabricatorApplication
{
5 public function getBaseURI() {
9 public function getName() {
13 public function getShortDescription() {
14 return pht('Image Macros and Memes');
17 public function getIcon() {
18 return 'fa-file-image-o';
21 public function getTitleGlyph() {
22 return "\xE2\x9A\x98";
25 public function getApplicationGroup() {
26 return self
::GROUP_UTILITIES
;
29 public function getRoutes() {
32 '(query/(?P<key>[^/]+)/)?' => 'PhabricatorMacroListController',
33 'create/' => 'PhabricatorMacroEditController',
34 'view/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroViewController',
35 $this->getEditRoutePattern('edit/')
36 => 'PhabricatorMacroEditController',
37 'audio/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroAudioController',
38 'disable/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroDisableController',
39 'meme/' => 'PhabricatorMacroMemeController',
40 'meme/create/' => 'PhabricatorMacroMemeDialogController',
45 protected function getCustomCapabilities() {
47 PhabricatorMacroManageCapability
::CAPABILITY
=> array(
48 'caption' => pht('Allows creating and editing macros.'),
53 public function getMailCommandObjects() {
56 'name' => pht('Email Commands: Macros'),
57 'header' => pht('Interacting with Macros'),
58 'object' => new PhabricatorFileImageMacro(),
60 'This page documents the commands you can use to interact with '.