mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/12775] Update container and config in install/
PHPBB3-12775
This commit is contained in:
@@ -51,7 +51,7 @@ class install_install extends module
|
||||
function main($mode, $sub)
|
||||
{
|
||||
global $lang, $template, $language, $phpbb_root_path, $phpEx;
|
||||
global $phpbb_container, $cache, $phpbb_log, $request;
|
||||
global $phpbb_container, $cache, $phpbb_log, $request, $phpbb_config_php_handler;
|
||||
|
||||
switch ($sub)
|
||||
{
|
||||
@@ -104,7 +104,8 @@ class install_install extends module
|
||||
$request->enable_super_globals();
|
||||
|
||||
// Create a normal container now
|
||||
$phpbb_container = phpbb_create_default_container($phpbb_root_path, $phpEx);
|
||||
$phpbb_container_factory = new \phpbb\di\container_factory($phpbb_config_php_handler, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container = $phpbb_container_factory->get_container();
|
||||
|
||||
// Sets the global variables
|
||||
$cache = $phpbb_container->get('cache');
|
||||
|
Reference in New Issue
Block a user