[ticket/11479] Use phpbb_create_default_container

PHPBB3-11479
This commit is contained in:
Nathan Guse 2013-04-24 14:58:27 -05:00
parent cc902ddee0
commit 4becf85f52

View file

@ -75,18 +75,7 @@ class install_update extends module
global $request, $phpbb_admin_path, $phpbb_adm_relative_path, $phpbb_container;
// Create a normal container now
$phpbb_container = phpbb_create_dumped_container_unless_debug(
array(
new phpbb_di_extension_config($phpbb_root_path . 'config.' . $phpEx),
new phpbb_di_extension_core($phpbb_root_path),
),
array(
new phpbb_di_pass_collection_pass(),
new phpbb_di_pass_kernel_pass(),
),
$phpbb_root_path,
$phpEx
);
$phpbb_container = phpbb_create_default_container($phpbb_root_path, $phpEx);
// Writes into global $cache
$cache = $phpbb_container->get('cache');