Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | public function handleException(Exception $ex) { | ||||
$response = new AphrontDialogResponse(); | $response = new AphrontDialogResponse(); | ||||
$response->setDialog($dialog); | $response->setDialog($dialog); | ||||
$response->setHTTPResponseCode(500); | $response->setHTTPResponseCode(500); | ||||
return $response; | return $response; | ||||
} | } | ||||
public function willSendResponse(AphrontResponse $response) { | |||||
return $response; | |||||
} | |||||
public function build404Controller() { | public function build404Controller() { | ||||
return array(new Phabricator404Controller(), array()); | return array(new Phabricator404Controller(), array()); | ||||
} | } | ||||
public function buildRedirectController($uri, $external) { | public function buildRedirectController($uri, $external) { | ||||
return array( | return array( | ||||
new PhabricatorRedirectController(), | new PhabricatorRedirectController(), | ||||
array( | array( | ||||
'uri' => $uri, | 'uri' => $uri, | ||||
'external' => $external, | 'external' => $external, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
} | } |