mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11700] Fix extension loading with namespaces
class loader now expects all classes to be prefixed with a backslash when resolving paths PHPBB3-11700
This commit is contained in:
@@ -55,7 +55,7 @@ class kernel_exception_subscriber implements EventSubscriberInterface
|
||||
* @param GetResponseForExceptionEvent $event
|
||||
* @return null
|
||||
*/
|
||||
public function on_kernel_exception(\GetResponseForExceptionEvent $event)
|
||||
public function on_kernel_exception(GetResponseForExceptionEvent $event)
|
||||
{
|
||||
page_header($this->user->lang('INFORMATION'));
|
||||
|
||||
@@ -74,7 +74,7 @@ class kernel_exception_subscriber implements EventSubscriberInterface
|
||||
|
||||
|
||||
$status_code = $exception instanceof HttpException ? $exception->getStatusCode() : 500;
|
||||
$response = new \Response($this->template->assign_display('body'), $status_code);
|
||||
$response = new Response($this->template->assign_display('body'), $status_code);
|
||||
$event->setResponse($response);
|
||||
}
|
||||
|
||||
|
@@ -65,14 +65,14 @@ class kernel_request_subscriber implements EventSubscriberInterface
|
||||
* @param GetResponseEvent $event
|
||||
* @return null
|
||||
*/
|
||||
public function on_kernel_request(\GetResponseEvent $event)
|
||||
public function on_kernel_request(GetResponseEvent $event)
|
||||
{
|
||||
$request = $event->getRequest();
|
||||
$context = new \RequestContext();
|
||||
$context = new RequestContext();
|
||||
$context->fromRequest($request);
|
||||
|
||||
$matcher = phpbb_get_url_matcher($this->finder, $context, $this->root_path, $this->php_ext);
|
||||
$router_listener = new \RouterListener($matcher, $context);
|
||||
$router_listener = new RouterListener($matcher, $context);
|
||||
$router_listener->onKernelRequest($event);
|
||||
}
|
||||
|
||||
|
@@ -31,7 +31,7 @@ class kernel_terminate_subscriber implements EventSubscriberInterface
|
||||
* @param PostResponseEvent $event
|
||||
* @return null
|
||||
*/
|
||||
public function on_kernel_terminate(\PostResponseEvent $event)
|
||||
public function on_kernel_terminate(PostResponseEvent $event)
|
||||
{
|
||||
exit_handler();
|
||||
}
|
||||
|
Reference in New Issue
Block a user