mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-21 07:51:33 +02:00
[ticket/12775] Fix container_builder
PHPBB3-12775
This commit is contained in:
@@ -86,7 +86,7 @@ require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
|
||||
set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler');
|
||||
|
||||
// Set up container (must be done here because extensions table may not exist)
|
||||
$phpbb_container_builder = new \phpbb\di\container_factory($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder = new \phpbb\di\container_builder($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder->set_use_extensions(false);
|
||||
$phpbb_container_builder->set_use_kernel_pass(false);
|
||||
$phpbb_container_builder->set_dump_container(false);
|
||||
|
@@ -120,7 +120,7 @@ $phpbb_class_loader_ext->register();
|
||||
|
||||
// Set up container
|
||||
$phpbb_config_php_file = new \phpbb\config_php_file($phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder = new \phpbb\di\container_factory($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder = new \phpbb\di\container_builder($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder->set_use_extensions(false);
|
||||
$phpbb_container_builder->set_dump_container(false);
|
||||
$phpbb_container_builder->set_use_custom_pass(false);
|
||||
|
@@ -127,7 +127,7 @@ class install_convert extends module
|
||||
// Enable super globals to prevent issues with the new \phpbb\request\request object
|
||||
$request->enable_super_globals();
|
||||
// Create a normal container now
|
||||
$phpbb_container_builder = new \phpbb\di\container_factory($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder = new \phpbb\di\container_builder($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container = $phpbb_container_builder->get_container();
|
||||
|
||||
// Create cache
|
||||
|
@@ -104,7 +104,7 @@ class install_install extends module
|
||||
$request->enable_super_globals();
|
||||
|
||||
// Create a normal container now
|
||||
$phpbb_container_builder = new \phpbb\di\container_factory($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder = new \phpbb\di\container_builder($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container = $phpbb_container_builder->get_container();
|
||||
|
||||
// Sets the global variables
|
||||
|
@@ -76,7 +76,7 @@ class install_update extends module
|
||||
$request->enable_super_globals();
|
||||
|
||||
// Create a normal container now
|
||||
$phpbb_container_builder = new \phpbb\di\container_factory($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder = new \phpbb\di\container_builder($phpbb_config_php_file, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container_builder->set_dump_container(false);
|
||||
$phpbb_container_builder->set_use_extensions(false);
|
||||
if (file_exists($phpbb_root_path . 'install/update/new/config'))
|
||||
|
Reference in New Issue
Block a user