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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user