1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 01:38:48 +02:00
phorge-phorge/src/aphront
epriestley 75c4a185a9 Begin modularizing typeahead sources
Summary:
Ref T4420. This sets up the basics for modular typeahead sources. Basically, the huge `switch()` is just replaced with class-based runtime dispatch.

The only clever bit I'm doing here is with `CompositeDatasource`, which pretty much just combines the results from several other datasources. We can use this to implement some of the weird cases where we need multiple types of results, although I think I can entirely eliminate many of them entirely. It also makes top-level implementation simpler, since more logic can go inside the sources.

Sources are also application-aware, will be responsible for placeholder text, and have a slightly nicer debug view.

Test Plan: {F112859}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4420

Differential Revision: https://secure.phabricator.com/D8228
2014-02-14 10:23:25 -08:00
..
__tests__ Fix an issue where PHP puts the content type in CONTENT_TYPE instead of HTTP_CONTENT_TYPE 2013-11-11 12:17:34 -08:00
configuration Begin modularizing typeahead sources 2014-02-14 10:23:25 -08:00
console Consolidate use of magical cookie name strings 2014-01-23 14:01:35 -08:00
exception Remove AphrontRedirectException 2013-10-07 13:29:05 -07:00
response When stopping on redirect, show a full stack trace 2013-11-21 14:38:29 -08:00
sink Accept and route VCS HTTP requests 2013-10-29 15:32:40 -07:00
AphrontController.php Allow CelerityResourceResponse to hold resources from multiple maps 2014-01-02 11:59:35 -08:00
AphrontRequest.php Write a very basic string extractor 2014-02-05 11:02:41 -08:00
AphrontURIMapper.php Delete license headers from files 2012-11-05 11:16:51 -08:00