aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-11-15 05:00:24 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-11-15 05:00:24 +0100
commit31843ecd8c5b5d3b95d9d1775213fe22a93c8d2b (patch)
tree55db7364846fe0cdadf8efe35400693a6e47b7be /phpBB
parent56b7ba2085ce603005127443cfb9c93ae05fcebb (diff)
downloadforums-31843ecd8c5b5d3b95d9d1775213fe22a93c8d2b.tar
forums-31843ecd8c5b5d3b95d9d1775213fe22a93c8d2b.tar.gz
forums-31843ecd8c5b5d3b95d9d1775213fe22a93c8d2b.tar.bz2
forums-31843ecd8c5b5d3b95d9d1775213fe22a93c8d2b.tar.xz
forums-31843ecd8c5b5d3b95d9d1775213fe22a93c8d2b.zip
[ticket/11200] Make cache available during container construction
Fixes fatal errors in the dbal. PHPBB3-11200
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_container.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions_container.php b/phpBB/includes/functions_container.php
index 1763d1082a..cbd0fe15b0 100644
--- a/phpBB/includes/functions_container.php
+++ b/phpBB/includes/functions_container.php
@@ -84,8 +84,11 @@ function phpbb_create_compiled_container(array $extensions, array $passes, $phpb
$tmp_container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
$tmp_container->compile();
+ $GLOBALS['cache'] = $tmp_container->get('cache');
+ $installed_exts = $tmp_container->get('ext.manager')->all_enabled();
+
// Now pass the enabled extension paths into the ext compiler extension
- $extensions[] = new phpbb_di_extension_ext($tmp_container->get('ext.manager')->all_enabled());
+ $extensions[] = new phpbb_di_extension_ext($installed_exts);
// Create the final container to be compiled and cached
$container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);