aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/app.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-11-18 15:52:35 -0500
committerDavid King <imkingdavid@gmail.com>2012-11-18 15:52:35 -0500
commit0f4f81b0966e29b5aaae5bf94e46260474ec0cb2 (patch)
treed7be47ca28737fcaf56aef4ef336b9f5eb932b9c /phpBB/app.php
parent2f50d656481dca3c2aa28cd5035ce0d44e5c4977 (diff)
downloadforums-0f4f81b0966e29b5aaae5bf94e46260474ec0cb2.tar
forums-0f4f81b0966e29b5aaae5bf94e46260474ec0cb2.tar.gz
forums-0f4f81b0966e29b5aaae5bf94e46260474ec0cb2.tar.bz2
forums-0f4f81b0966e29b5aaae5bf94e46260474ec0cb2.tar.xz
forums-0f4f81b0966e29b5aaae5bf94e46260474ec0cb2.zip
[feature/controller] Create Symfony Request in new function
PHPBB3-10864
Diffstat (limited to 'phpBB/app.php')
-rw-r--r--phpBB/app.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/app.php b/phpBB/app.php
index 13bf3f0be1..c085f966c8 100644
--- a/phpBB/app.php
+++ b/phpBB/app.php
@@ -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);