1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 17:56:52 +02:00

[feature/controller] Use query string, not path info, for controller access

This is hopefully just temporary until we can fix the relative path issue.

PHPBB3-10864
This commit is contained in:
David King
2012-11-17 17:48:20 -05:00
parent 4efbb893b7
commit 8913b2c7c4
3 changed files with 9 additions and 22 deletions

View File

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