1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 07:35:29 +02:00

[ticket/11305] Use phpbb_create_default_container.

PHPBB3-11305
This commit is contained in:
Oleg Pudeyev 2013-01-02 01:31:06 -05:00
parent 8d3edd4128
commit 210f627f67

View File

@ -103,18 +103,7 @@ class install_install extends module
case 'final':
// 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');