mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
cf4ff8318e
Summary: Refs T2989 Renamed file Libery Test Plan: Nothing broken, that's always a good sign. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2989 Differential Revision: https://secure.phabricator.com/D5697 Conflicts: src/__phutil_library_map__.php
41 lines
1,015 B
PHP
41 lines
1,015 B
PHP
<?php
|
|
|
|
final class PhabricatorApplicationSearch extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/search/';
|
|
}
|
|
|
|
public function getName() {
|
|
return pht('Search');
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Search & Find');
|
|
}
|
|
|
|
public function getFlavorText() {
|
|
return pht('Find stuff in big piles.');
|
|
}
|
|
|
|
public function shouldAppearInLaunchView() {
|
|
return false;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/search/' => array(
|
|
'' => 'PhabricatorSearchController',
|
|
'(?P<key>[^/]+)/' => 'PhabricatorSearchController',
|
|
'attach/(?P<phid>[^/]+)/(?P<type>\w+)/(?:(?P<action>\w+)/)?'
|
|
=> 'PhabricatorSearchAttachController',
|
|
'select/(?P<type>\w+)/'
|
|
=> 'PhabricatorSearchSelectController',
|
|
'index/(?P<phid>[^/]+)/' => 'PhabricatorSearchIndexController',
|
|
'hovercard/(?P<mode>retrieve|test)/' =>
|
|
'PhabricatorSearchHovercardController',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|