mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #4171 from CHItA/ticket/14462
[ticket/14462] Try to prevent timeouts in the installer * CHItA/ticket/14462: [ticket/14462] Not show timeout messages in convertors [ticket/14462] Make timeout error translateable [ticket/14462] Update ordering in install db config [ticket/14462] Fix comments [ticket/14462] Fix tests [ticket/14462] Fix CS and typo [ticket/14462] Set instance of db driver for database access using global [ticket/14462] Fix installation in tests [ticket/14462] Refactor tasks to be more modular [ticket/14462] Further speed improvements
This commit is contained in:
@@ -53,6 +53,7 @@ services:
|
||||
phpbb.installer.controller.convert:
|
||||
class: phpbb\convert\controller\convertor
|
||||
arguments:
|
||||
- '@cache.driver'
|
||||
- '@installer.helper.container_factory'
|
||||
- '@installer.helper.database'
|
||||
- '@phpbb.installer.controller.helper'
|
||||
|
@@ -23,6 +23,7 @@ services:
|
||||
installer.install_data.add_modules:
|
||||
class: phpbb\install\module\install_data\task\add_modules
|
||||
arguments:
|
||||
- '@installer.helper.config'
|
||||
- '@installer.helper.iohandler'
|
||||
- '@installer.helper.container_factory'
|
||||
tags:
|
||||
|
@@ -1,15 +1,35 @@
|
||||
services:
|
||||
installer.install_database.create_schema:
|
||||
class: phpbb\install\module\install_database\task\create_schema
|
||||
installer.install_database.create_schema_file:
|
||||
class: phpbb\install\module\install_database\task\create_schema_file
|
||||
arguments:
|
||||
- '@installer.helper.config'
|
||||
- '@installer.helper.database'
|
||||
- '@filesystem'
|
||||
- '%core.root_path%'
|
||||
- '%core.php_ext%'
|
||||
tags:
|
||||
- { name: install_database_install, order: 10 }
|
||||
|
||||
installer.install_database.set_up_database:
|
||||
class: phpbb\install\module\install_database\task\set_up_database
|
||||
arguments:
|
||||
- '@installer.helper.config'
|
||||
- '@installer.helper.database'
|
||||
- '@filesystem'
|
||||
- '@installer.helper.iohandler'
|
||||
- '%core.root_path%'
|
||||
- '%core.php_ext%'
|
||||
tags:
|
||||
- { name: install_database_install, order: 10 }
|
||||
- { name: install_database_install, order: 20 }
|
||||
|
||||
installer.install_database.add_tables:
|
||||
class: phpbb\install\module\install_database\task\add_tables
|
||||
arguments:
|
||||
- '@installer.helper.config'
|
||||
- '@installer.helper.database'
|
||||
- '@filesystem'
|
||||
- '%core.root_path%'
|
||||
tags:
|
||||
- { name: install_database_install, order: 30 }
|
||||
|
||||
installer.install_database.add_default_data:
|
||||
class: phpbb\install\module\install_database\task\add_default_data
|
||||
@@ -21,7 +41,7 @@ services:
|
||||
- '@language'
|
||||
- '%core.root_path%'
|
||||
tags:
|
||||
- { name: install_database_install, order: 20 }
|
||||
- { name: install_database_install, order: 40 }
|
||||
|
||||
installer.install_database.add_config_settings:
|
||||
class: phpbb\install\module\install_database\task\add_config_settings
|
||||
@@ -33,7 +53,7 @@ services:
|
||||
- '@language'
|
||||
- '%core.root_path%'
|
||||
tags:
|
||||
- { name: install_database_install, order: 30 }
|
||||
- { name: install_database_install, order: 50 }
|
||||
|
||||
installer.module.install_database_collection:
|
||||
class: phpbb\di\ordered_service_collection
|
||||
|
@@ -2,6 +2,7 @@ services:
|
||||
installer.install_finish.populate_migrations:
|
||||
class: phpbb\install\module\install_finish\task\populate_migrations
|
||||
arguments:
|
||||
- '@installer.helper.config'
|
||||
- '@installer.helper.container_factory'
|
||||
tags:
|
||||
- { name: install_finish, order: 10 }
|
||||
|
@@ -89,6 +89,7 @@ services:
|
||||
- '@cache.driver'
|
||||
- '@installer.helper.config'
|
||||
- '@path_helper'
|
||||
- '@installer.helper.container_factory'
|
||||
|
||||
installer.install.module_collection:
|
||||
class: phpbb\di\ordered_service_collection
|
||||
@@ -108,8 +109,10 @@ services:
|
||||
parent: installer.installer.abstract
|
||||
calls:
|
||||
- [set_modules, ['@installer.install.module_collection']]
|
||||
- [set_purge_cache_before, [false]]
|
||||
|
||||
installer.installer.update:
|
||||
parent: installer.installer.abstract
|
||||
calls:
|
||||
- [set_modules, ['@installer.update.module_collection']]
|
||||
- [set_purge_cache_before, [true]]
|
||||
|
Reference in New Issue
Block a user