Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontApplicationConfiguration.php
| Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | public static function runHTTPRequest(AphrontHTTPSink $sink) { | ||||
| DarkConsoleErrorLogPluginAPI::registerErrorHandler(); | DarkConsoleErrorLogPluginAPI::registerErrorHandler(); | ||||
| $response = PhabricatorSetupCheck::willProcessRequest(); | $response = PhabricatorSetupCheck::willProcessRequest(); | ||||
| if ($response) { | if ($response) { | ||||
| return self::writeResponse($sink, $response); | return self::writeResponse($sink, $response); | ||||
| } | } | ||||
| $host = AphrontRequest::getHTTPHeader('Host'); | $host = AphrontRequest::getHTTPHeader('Host'); | ||||
| $path = $_REQUEST['__path__']; | $path = PhabricatorStartup::getRequestPath(); | ||||
| $application = new self(); | $application = new self(); | ||||
| $application->setHost($host); | $application->setHost($host); | ||||
| $application->setPath($path); | $application->setPath($path); | ||||
| $request = $application->buildRequest(); | $request = $application->buildRequest(); | ||||
| // Now that we have a request, convert the write guard into one which | // Now that we have a request, convert the write guard into one which | ||||
| ▲ Show 20 Lines • Show All 566 Lines • ▼ Show 20 Lines | foreach ($handlers as $handler) { | ||||
| return $response; | return $response; | ||||
| } | } | ||||
| } | } | ||||
| throw $throwable; | throw $throwable; | ||||
| } | } | ||||
| private static function newSelfCheckResponse() { | private static function newSelfCheckResponse() { | ||||
| $path = idx($_REQUEST, '__path__', ''); | $path = PhabricatorStartup::getRequestPath(); | ||||
| $query = idx($_SERVER, 'QUERY_STRING', ''); | $query = idx($_SERVER, 'QUERY_STRING', ''); | ||||
| $pairs = id(new PhutilQueryStringParser()) | $pairs = id(new PhutilQueryStringParser()) | ||||
| ->parseQueryStringToPairList($query); | ->parseQueryStringToPairList($query); | ||||
| $params = array(); | $params = array(); | ||||
| foreach ($pairs as $v) { | foreach ($pairs as $v) { | ||||
| $params[] = array( | $params[] = array( | ||||
| ▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines | |||||