Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / pholio / application / PhabricatorPholioApplication.php
blob4d80dd12ae5c8606d57ac0c0a6c762abcbcd33e9
1 <?php
3 final class PhabricatorPholioApplication extends PhabricatorApplication {
5 public function getName() {
6 return pht('Pholio');
9 public function getBaseURI() {
10 return '/pholio/';
13 public function getShortDescription() {
14 return pht('Review Mocks and Design');
17 public function getIcon() {
18 return 'fa-camera-retro';
21 public function getTitleGlyph() {
22 return "\xE2\x9D\xA6";
25 public function getFlavorText() {
26 return pht('Things before they were cool.');
29 public function getRemarkupRules() {
30 return array(
31 new PholioRemarkupRule(),
35 public function getRoutes() {
36 return array(
37 '/M(?P<id>[1-9]\d*)(?:/(?P<imageID>\d+)/)?' => 'PholioMockViewController',
38 '/pholio/' => array(
39 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PholioMockListController',
40 'new/' => 'PholioMockEditController',
41 'create/' => 'PholioMockEditController',
42 'edit/(?P<id>\d+)/' => 'PholioMockEditController',
43 'archive/(?P<id>\d+)/' => 'PholioMockArchiveController',
44 'comment/(?P<id>\d+)/' => 'PholioMockCommentController',
45 'inline/' => array(
46 '(?:(?P<id>\d+)/)?' => 'PholioInlineController',
47 'list/(?P<id>\d+)/' => 'PholioInlineListController',
49 'image/' => array(
50 'upload/' => 'PholioImageUploadController',
56 protected function getCustomCapabilities() {
57 return array(
58 PholioDefaultViewCapability::CAPABILITY => array(
59 'template' => PholioMockPHIDType::TYPECONST,
60 'capability' => PhabricatorPolicyCapability::CAN_VIEW,
62 PholioDefaultEditCapability::CAPABILITY => array(
63 'template' => PholioMockPHIDType::TYPECONST,
64 'capability' => PhabricatorPolicyCapability::CAN_EDIT,
69 public function getMailCommandObjects() {
70 return array(
71 'mock' => array(
72 'name' => pht('Email Commands: Mocks'),
73 'header' => pht('Interacting with Pholio Mocks'),
74 'object' => new PholioMock(),
75 'summary' => pht(
76 'This page documents the commands you can use to interact with '.
77 'mocks in Pholio.'),
82 public function getApplicationSearchDocumentTypes() {
83 return array(
84 PholioMockPHIDType::TYPECONST,