1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[feature/controller] Create Symfony Request in new function

PHPBB3-10864
This commit is contained in:
David King
2012-11-18 15:52:35 -05:00
parent 2f50d65648
commit 0f4f81b096
2 changed files with 41 additions and 4 deletions

View File

@@ -7,8 +7,6 @@
*
*/
use Symfony\Component\HttpFoundation\Request;
/**
*/
@@ -28,9 +26,9 @@ $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', '', false, phpbb_request_interface::GET);
$controller = $request->variable('controller', '');
$uri = '/' . $controller;
$symfony_request = Request::create($uri);
$symfony_request = phpbb_create_symfony_request($uri, $request);
$http_kernel = $phpbb_container->get('http_kernel');
$response = $http_kernel->handle($symfony_request);