Changeset View
Changeset View
Standalone View
Standalone View
webroot/index.php
| <?php | <?php | ||||
| $phabricator_root = dirname(dirname(__FILE__)); | $phabricator_root = dirname(dirname(__FILE__)); | ||||
| require_once $phabricator_root.'/support/PhabricatorStartup.php'; | require_once $phabricator_root.'/support/PhabricatorStartup.php'; | ||||
| // If the preamble script exists, load it. | // If the preamble script exists, load it. | ||||
| $preamble_path = $phabricator_root.'/support/preamble.php'; | $preamble_path = $phabricator_root.'/support/preamble.php'; | ||||
| if (file_exists($preamble_path)) { | if (file_exists($preamble_path)) { | ||||
| require_once $preamble_path; | require_once $preamble_path; | ||||
| } | } | ||||
| PhabricatorStartup::didStartup(); | PhabricatorStartup::didStartup(); | ||||
| try { | try { | ||||
| PhabricatorStartup::loadCoreLibraries(); | PhabricatorStartup::loadCoreLibraries(); | ||||
| PhabricatorCaches::destroyRequestCache(); | |||||
| $sink = new AphrontPHPHTTPSink(); | $sink = new AphrontPHPHTTPSink(); | ||||
| try { | try { | ||||
| AphrontApplicationConfiguration::runHTTPRequest($sink); | AphrontApplicationConfiguration::runHTTPRequest($sink); | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| try { | try { | ||||
| $response = new AphrontUnhandledExceptionResponse(); | $response = new AphrontUnhandledExceptionResponse(); | ||||
| $response->setException($ex); | $response->setException($ex); | ||||
| Show All 13 Lines | |||||