1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[feature/controller] Move Response definition into a variable

PHPBB3-10864
This commit is contained in:
David King
2012-11-15 16:18:02 -05:00
parent 235b0194f1
commit 45b3ab8e81

View File

@@ -67,7 +67,8 @@ class phpbb_event_kernel_exception_subscriber implements EventSubscriberInterfac
page_footer(true, false, false);
$event->setResponse(new Response($this->template->assign_display('body'), 404));
$response = new Response($this->template->assign_display('body'), 404);
$event->setResponse($response);
}
public static function getSubscribedEvents()