1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00

Minor, ensure didProcessRequest() is called even for exceptions.

This commit is contained in:
epriestley 2012-08-07 09:54:59 -07:00
parent 7f98e3a8bd
commit f614670de9

View file

@ -192,7 +192,6 @@ try {
if (!$response) {
$controller->willProcessRequest($uri_data);
$response = $controller->processRequest();
$response = $controller->didProcessRequest($response);
}
} catch (AphrontRedirectException $ex) {
$response = id(new AphrontRedirectResponse())
@ -203,6 +202,7 @@ try {
}
try {
$response = $controller->didProcessRequest($response);
$response = $application->willSendResponse($response, $controller);
$response->setRequest($request);
$response_string = $response->buildResponseString();