aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-10-19 19:54:19 -0400
committerDavid King <imkingdavid@gmail.com>2012-11-16 16:25:09 -0500
commit06158693c7b846518abfe9d72491fc7376e457f3 (patch)
tree46ce44bfeab4bb9f5275fee8ad8e01df3babaddf /phpBB/common.php
parent65dde648cab316fd0f0715f13d57ef45452398a3 (diff)
downloadforums-06158693c7b846518abfe9d72491fc7376e457f3.tar
forums-06158693c7b846518abfe9d72491fc7376e457f3.tar.gz
forums-06158693c7b846518abfe9d72491fc7376e457f3.tar.bz2
forums-06158693c7b846518abfe9d72491fc7376e457f3.tar.xz
forums-06158693c7b846518abfe9d72491fc7376e457f3.zip
[feature/controller] Implement a front controller
PHPBB3-10864
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index c4237dfcf5..986f0a8839 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -8,9 +8,7 @@
* Minimum Requirement: PHP 5.3.3
*/
-use Symfony\Component\Config\FileLocator;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
+use Symfony\Component\HttpFoundation\Request;
/**
*/
@@ -106,6 +104,11 @@ $phpbb_class_loader_ext->set_cache($phpbb_container->get('cache.driver'));
// set up caching
$cache = $phpbb_container->get('cache');
+// Instantiate the Symfony Request object
+// This must be done before phpbb_request
+// because otherwise globals are disabled
+$symfony_request = Request::createFromGlobals();
+
// Instantiate some basic classes
$phpbb_dispatcher = $phpbb_container->get('dispatcher');
$request = $phpbb_container->get('request');