1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +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:
Nils Adermann
2013-09-19 18:29:08 +02:00
parent f205c4fad4
commit fe36375a36
23 changed files with 72 additions and 46 deletions

View File

@@ -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);
}