mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11479] Use phpbb_create_default_container
PHPBB3-11479
This commit is contained in:
parent
cc902ddee0
commit
4becf85f52
1 changed files with 1 additions and 12 deletions
|
@ -75,18 +75,7 @@ class install_update extends module
|
||||||
global $request, $phpbb_admin_path, $phpbb_adm_relative_path, $phpbb_container;
|
global $request, $phpbb_admin_path, $phpbb_adm_relative_path, $phpbb_container;
|
||||||
|
|
||||||
// Create a normal container now
|
// Create a normal container now
|
||||||
$phpbb_container = phpbb_create_dumped_container_unless_debug(
|
$phpbb_container = phpbb_create_default_container($phpbb_root_path, $phpEx);
|
||||||
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
|
|
||||||
);
|
|
||||||
|
|
||||||
// Writes into global $cache
|
// Writes into global $cache
|
||||||
$cache = $phpbb_container->get('cache');
|
$cache = $phpbb_container->get('cache');
|
||||||
|
|
Loading…
Add table
Reference in a new issue