Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / search / application / PhabricatorSearchApplication.php
blobbe229b1aec8624a491fdfdfaaea9ba31a6647c1d
1 <?php
3 final class PhabricatorSearchApplication extends PhabricatorApplication {
5 public function getBaseURI() {
6 return '/search/';
9 public function getName() {
10 return pht('Search');
13 public function getShortDescription() {
14 return pht('Full-Text Search');
17 public function getFlavorText() {
18 return pht('Find stuff in big piles.');
21 public function getIcon() {
22 return 'fa-search';
25 public function isLaunchable() {
26 return false;
29 public function getRoutes() {
30 return array(
31 '/search/' => array(
32 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorSearchController',
33 'hovercard/'
34 => 'PhabricatorSearchHovercardController',
35 'handle/(?P<phid>[^/]+)/'
36 => 'PhabricatorSearchHandleController',
37 'edit/' => array(
38 'key/(?P<queryKey>[^/]+)/' => 'PhabricatorSearchEditController',
39 'id/(?P<id>[^/]+)/' => 'PhabricatorSearchEditController',
41 'default/(?P<queryKey>[^/]+)/(?P<engine>[^/]+)/'
42 => 'PhabricatorSearchDefaultController',
43 'delete/' => array(
44 'key/(?P<queryKey>[^/]+)/(?P<engine>[^/]+)/'
45 => 'PhabricatorSearchDeleteController',
46 'id/(?P<id>[^/]+)/'
47 => 'PhabricatorSearchDeleteController',
49 'order/(?P<engine>[^/]+)/' => 'PhabricatorSearchOrderController',
50 'rel/(?P<relationshipKey>[^/]+)/(?P<sourcePHID>[^/]+)/'
51 => 'PhabricatorSearchRelationshipController',
52 'source/(?P<relationshipKey>[^/]+)/(?P<sourcePHID>[^/]+)/'
53 => 'PhabricatorSearchRelationshipSourceController',