diff options
Diffstat (limited to 'phpBB/config')
-rw-r--r-- | phpBB/config/migrator.yml | 49 | ||||
-rw-r--r-- | phpBB/config/services.yml | 7 | ||||
-rw-r--r-- | phpBB/config/tables.yml | 2 |
3 files changed, 58 insertions, 0 deletions
diff --git a/phpBB/config/migrator.yml b/phpBB/config/migrator.yml new file mode 100644 index 0000000000..999a2d41a3 --- /dev/null +++ b/phpBB/config/migrator.yml @@ -0,0 +1,49 @@ +services: + migrator: + class: phpbb_db_migrator + arguments: + - @config + - @dbal.conn + - @dbal.tools + - %tables.migrations% + - %core.root_path% + - %core.php_ext% + - %core.table_prefix% + - @migrator.tool_collection + + migrator.tool_collection: + class: phpbb_di_service_collection + arguments: + - @service_container + tags: + - { name: service_collection, tag: migrator.tool } + + migrator.tool.config: + class: phpbb_db_migration_tool_config + arguments: + - @config + tags: + - { name: migrator.tool } + + migrator.tool.module: + class: phpbb_db_migration_tool_module + arguments: + - @dbal.conn + - @cache + - @user + - %core.root_path% + - %core.php_ext% + - %tables.modules% + tags: + - { name: migrator.tool } + + migrator.tool.permission: + class: phpbb_db_migration_tool_permission + arguments: + - @dbal.conn + - @cache + - @auth + - %core.root_path% + - %core.php_ext% + tags: + - { name: migrator.tool } diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml index 9979406336..40358259d8 100644 --- a/phpBB/config/services.yml +++ b/phpBB/config/services.yml @@ -2,6 +2,7 @@ imports: - { resource: tables.yml } - { resource: cron_tasks.yml } - { resource: notifications.yml } + - { resource: migrator.yml } services: auth: @@ -95,6 +96,12 @@ services: calls: - [sql_connect, [%dbal.dbhost%, %dbal.dbuser%, %dbal.dbpasswd%, %dbal.dbname%, %dbal.dbport%, false, %dbal.new_link%]] + dbal.tools: + file: %core.root_path%includes/db/db_tools.%core.php_ext% + class: phpbb_db_tools + arguments: + - @dbal.conn + event.subscriber_loader: class: phpbb_event_extension_subscriber_loader arguments: diff --git a/phpBB/config/tables.yml b/phpBB/config/tables.yml index f5685a7cd9..10db8fbab6 100644 --- a/phpBB/config/tables.yml +++ b/phpBB/config/tables.yml @@ -5,3 +5,5 @@ parameters: tables.notifications: %core.table_prefix%notifications tables.user_notifications: %core.table_prefix%user_notifications tables.users: %core.table_prefix%users + tables.migrations: %core.table_prefix%migrations + tables.modules: %core.table_prefix%modules |