blob: bf9d28ec65143d30931970fa73b655d6cd7a1e85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
imports:
- { resource: services_file_updater.yml }
- { resource: services_install_console.yml }
- { resource: services_install_controller.yml }
- { resource: services_install_data.yml }
- { resource: services_install_database.yml }
- { resource: services_install_filesystem.yml }
- { resource: services_install_finish.yml }
- { resource: services_install_navigation.yml }
- { resource: services_install_obtain_data.yml }
- { resource: services_install_requirements.yml }
- { resource: services_update_database.yml }
- { resource: services_update_filesystem.yml }
- { resource: services_update_obtain_data.yml }
- { resource: services_update_requirements.yml }
services:
# -------- Installer helpers ------------------------
installer.helper.config:
class: phpbb\install\helper\config
arguments:
- '@filesystem'
- '@php_ini'
- '%core.root_path%'
installer.helper.database:
class: phpbb\install\helper\database
arguments:
- '@filesystem'
- '%core.root_path%'
installer.helper.iohandler_factory:
class: phpbb\install\helper\iohandler\factory
arguments:
- '@service_container'
installer.helper.iohandler_abstract:
abstract: true
calls:
- [set_language, ['@language']]
installer.helper.iohandler_ajax:
class: phpbb\install\helper\iohandler\ajax_iohandler
parent: installer.helper.iohandler_abstract
arguments:
- '@path_helper'
- '@request'
- '@template'
- '@router'
installer.helper.iohandler_cli:
class: phpbb\install\helper\iohandler\cli_iohandler
parent: installer.helper.iohandler_abstract
installer.helper.iohandler:
class: phpbb\install\helper\iohandler\iohandler_interface
factory: ['@installer.helper.iohandler_factory', get]
installer.helper.container_factory:
class: phpbb\install\helper\container_factory
arguments:
- '@language'
- '@request'
- '@installer.helper.update_helper'
- '%core.root_path%'
- '%core.php_ext%'
installer.helper.install_helper:
class: phpbb\install\helper\install_helper
arguments:
- '%core.root_path%'
- '%core.php_ext%'
installer.helper.update_helper:
class: phpbb\install\helper\update_helper
arguments:
- '%core.root_path%'
# -------- Installer --------------------------------
installer.module_base:
abstract: true
calls:
- [setup, ['@installer.helper.config', '@installer.helper.iohandler']]
installer.installer.abstract:
class: phpbb\install\installer
abstract: true
arguments:
- '@cache.driver'
- '@installer.helper.config'
- '@path_helper'
installer.install.module_collection:
class: phpbb\di\ordered_service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: installer_install_module }
installer.update.module_collection:
class: phpbb\di\ordered_service_collection
arguments:
- '@service_container'
tags:
- { name: service_collection, tag: installer_update_module }
installer.installer.install:
parent: installer.installer.abstract
calls:
- [set_modules, ['@installer.install.module_collection']]
installer.installer.update:
parent: installer.installer.abstract
calls:
- [set_modules, ['@installer.update.module_collection']]
|