array( '(query/(?P[^/]+)/)?' => 'PhabricatorMacroListController', 'create/' => 'PhabricatorMacroEditController', 'view/(?P[1-9]\d*)/' => 'PhabricatorMacroViewController', 'comment/(?P[1-9]\d*)/' => 'PhabricatorMacroCommentController', 'edit/(?P[1-9]\d*)/' => 'PhabricatorMacroEditController', 'audio/(?P[1-9]\d*)/' => 'PhabricatorMacroAudioController', 'disable/(?P[1-9]\d*)/' => 'PhabricatorMacroDisableController', 'meme/' => 'PhabricatorMacroMemeController', 'meme/create/' => 'PhabricatorMacroMemeDialogController', ), ); } protected function getCustomCapabilities() { return array( PhabricatorMacroManageCapability::CAPABILITY => array( 'caption' => pht('Allows creating and editing macros.'), ), ); } public function getMailCommandObjects() { return array( 'macro' => array( 'name' => pht('Email Commands: Macros'), 'header' => pht('Interacting with Macros'), 'object' => new PhabricatorFileImageMacro(), 'summary' => pht( 'This page documents the commands you can use to interact with '. 'image macros.'), ), ); } }