Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontApplicationConfiguration.php
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | public static function runHTTPRequest(AphrontHTTPSink $sink) { | ||||
$response = PhabricatorSetupCheck::willPreflightRequest(); | $response = PhabricatorSetupCheck::willPreflightRequest(); | ||||
if ($response) { | if ($response) { | ||||
return self::writeResponse($sink, $response); | return self::writeResponse($sink, $response); | ||||
} | } | ||||
PhabricatorStartup::beginStartupPhase('env.init'); | PhabricatorStartup::beginStartupPhase('env.init'); | ||||
self::readHTTPPOSTData(); | |||||
try { | try { | ||||
PhabricatorEnv::initializeWebEnvironment(); | PhabricatorEnv::initializeWebEnvironment(); | ||||
$database_exception = null; | $database_exception = null; | ||||
} catch (PhabricatorClusterStrandedException $ex) { | } catch (PhabricatorClusterStrandedException $ex) { | ||||
$database_exception = $ex; | $database_exception = $ex; | ||||
} | } | ||||
if ($database_exception) { | if ($database_exception) { | ||||
Show All 27 Lines | public static function runHTTPRequest(AphrontHTTPSink $sink) { | ||||
$access_log->setData( | $access_log->setData( | ||||
array( | array( | ||||
'R' => AphrontRequest::getHTTPHeader('Referer', '-'), | 'R' => AphrontRequest::getHTTPHeader('Referer', '-'), | ||||
'r' => $address_string, | 'r' => $address_string, | ||||
'M' => idx($_SERVER, 'REQUEST_METHOD', '-'), | 'M' => idx($_SERVER, 'REQUEST_METHOD', '-'), | ||||
)); | )); | ||||
self::readHTTPPOSTData(); | |||||
DarkConsoleXHProfPluginAPI::hookProfiler(); | DarkConsoleXHProfPluginAPI::hookProfiler(); | ||||
// We just activated the profiler, so we don't need to keep track of | // We just activated the profiler, so we don't need to keep track of | ||||
// startup phases anymore: it can take over from here. | // startup phases anymore: it can take over from here. | ||||
PhabricatorStartup::beginStartupPhase('startup.done'); | PhabricatorStartup::beginStartupPhase('startup.done'); | ||||
DarkConsoleErrorLogPluginAPI::registerErrorHandler(); | DarkConsoleErrorLogPluginAPI::registerErrorHandler(); | ||||
▲ Show 20 Lines • Show All 653 Lines • Show Last 20 Lines |