mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/controller] Move Response definition into a variable
PHPBB3-10864
This commit is contained in:
parent
235b0194f1
commit
45b3ab8e81
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue