aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_container.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-11-20 23:19:51 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2012-11-20 23:19:51 -0600
commit61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e (patch)
tree210fe8026aecc70a45d48e52c58ef77d43b85787 /phpBB/includes/functions_container.php
parent570c5ad3c08378f377385aaff7d3810ccb8db3ff (diff)
parentb453f359ff6dab58b0eaf94548c4e58110fb02ec (diff)
downloadforums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.tar
forums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.tar.gz
forums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.tar.bz2
forums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.tar.xz
forums-61aa53f91aaf11bb2fdfac3a9cdc24b074b4463e.zip
Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ticket/11103
Conflicts: phpBB/config/services.yml phpBB/index.php
Diffstat (limited to 'phpBB/includes/functions_container.php')
-rw-r--r--phpBB/includes/functions_container.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/includes/functions_container.php b/phpBB/includes/functions_container.php
index 1763d1082a..8014574443 100644
--- a/phpBB/includes/functions_container.php
+++ b/phpBB/includes/functions_container.php
@@ -84,8 +84,13 @@ function phpbb_create_compiled_container(array $extensions, array $passes, $phpb
$tmp_container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
$tmp_container->compile();
+ // XXX stop writing to global $cache when
+ // http://tracker.phpbb.com/browse/PHPBB3-11203 is fixed
+ $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);
@@ -133,5 +138,5 @@ function phpbb_create_dumped_container_unless_debug(array $extensions, array $pa
function phpbb_container_filename($phpbb_root_path, $php_ext)
{
$filename = str_replace(array('/', '.'), array('slash', 'dot'), $phpbb_root_path);
- return $phpbb_root_path . 'cache/' . $filename . '_container.' . $php_ext;
+ return $phpbb_root_path . 'cache/container_' . $filename . '.' . $php_ext;
}