mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11200] Make cache available during container construction
Fixes fatal errors in the dbal. PHPBB3-11200
This commit is contained in:
parent
56b7ba2085
commit
31843ecd8c
1 changed files with 4 additions and 1 deletions
|
@ -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 = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
|
||||||
$tmp_container->compile();
|
$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
|
// 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
|
// Create the final container to be compiled and cached
|
||||||
$container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
|
$container = phpbb_create_container($extensions, $phpbb_root_path, $php_ext);
|
||||||
|
|
Loading…
Add table
Reference in a new issue