diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2013-01-01 21:07:03 -0500 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2013-01-02 01:29:32 -0500 |
| commit | 8d3edd412870640f7b906f3da67de3c5303dcb7a (patch) | |
| tree | 1d7f8a4549260943747e147c7d8c4ded70ce7a48 /phpBB/install/install_install.php | |
| parent | b94f9ae3029777fa0aba2f3cb52b321925ce7e72 (diff) | |
| download | forums-8d3edd412870640f7b906f3da67de3c5303dcb7a.tar forums-8d3edd412870640f7b906f3da67de3c5303dcb7a.tar.gz forums-8d3edd412870640f7b906f3da67de3c5303dcb7a.tar.bz2 forums-8d3edd412870640f7b906f3da67de3c5303dcb7a.tar.xz forums-8d3edd412870640f7b906f3da67de3c5303dcb7a.zip | |
[ticket/11305] Create a normal container during final installation step.
The final step calls a bunch of code which expects a full phpBB
runtime environment. Also, by this step everything should be configured
and database schema set up.
Therefore, in the final step replace installer container with a normal
phpBB container.
PHPBB3-11305
Diffstat (limited to 'phpBB/install/install_install.php')
| -rw-r--r-- | phpBB/install/install_install.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index c68cc27fb6..06fc2d2176 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -52,8 +52,8 @@ class install_install extends module function main($mode, $sub) { - global $lang, $template, $language, $phpbb_root_path; - global $phpbb_container; + global $lang, $template, $language, $phpbb_root_path, $phpEx; + global $phpbb_container, $cache; switch ($sub) { @@ -102,6 +102,23 @@ class install_install extends module break; 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 + ); + + // Writes into global $cache + $cache = $phpbb_container->get('cache'); + $this->build_search_index($mode, $sub); $this->add_modules($mode, $sub); $this->add_language($mode, $sub); |
