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

[feature/controller] Check for proper status codes from controllers

PHPBB3-10864
This commit is contained in:
David King
2012-11-19 12:37:20 -05:00
parent 3004350281
commit f8614bfc84
5 changed files with 29 additions and 9 deletions

View File

@@ -24,12 +24,7 @@ $user->session_begin();
$auth->acl($user->data);
$user->setup('app');
// Until we fix the issue with relative paths, we have to fake path info to
// allow urls like app.php?controller=foo/bar
$controller = $request->variable('controller', '');
$uri = '/' . $controller;
$symfony_request = phpbb_create_symfony_request($uri, $request);
$symfony_request = phpbb_create_symfony_request($request);
$http_kernel = $phpbb_container->get('http_kernel');
$response = $http_kernel->handle($symfony_request);
$response->send();