1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +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) { if (!$response) {
$controller->willProcessRequest($uri_data); $controller->willProcessRequest($uri_data);
$response = $controller->processRequest(); $response = $controller->processRequest();
$response = $controller->didProcessRequest($response);
} }
} catch (AphrontRedirectException $ex) { } catch (AphrontRedirectException $ex) {
$response = id(new AphrontRedirectResponse()) $response = id(new AphrontRedirectResponse())
@ -203,6 +202,7 @@ try {
} }
try { try {
$response = $controller->didProcessRequest($response);
$response = $application->willSendResponse($response, $controller); $response = $application->willSendResponse($response, $controller);
$response->setRequest($request); $response->setRequest($request);
$response_string = $response->buildResponseString(); $response_string = $response->buildResponseString();