mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[feature/migrations] Move migrator to service container
Version numbers 3.1 updates Restore database_update.php file to what it was in develop Get first forum to place global announcements in PHPBB3-9737
This commit is contained in:
@@ -94,6 +94,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:
|
||||
@@ -156,6 +162,45 @@ services:
|
||||
tags:
|
||||
- { name: kernel.event_subscriber }
|
||||
|
||||
migrator:
|
||||
class: phpbb_db_migrator
|
||||
arguments:
|
||||
- @service_container
|
||||
|
||||
migrator.tools_collection
|
||||
class: phpbb_di_service_collection
|
||||
arguments:
|
||||
- @service_container
|
||||
|
||||
migrator.tools.config:
|
||||
class: phpbb_db_migration_tools_config
|
||||
arguments:
|
||||
- @config
|
||||
tags:
|
||||
- { name: migrator:tool }
|
||||
|
||||
migrator.tools.module:
|
||||
class: phpbb_db_migration_tools_module
|
||||
arguments:
|
||||
- @db
|
||||
- @cache
|
||||
- @user
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
||||
tags:
|
||||
- { name: migrator:tool }
|
||||
|
||||
migrator.tools.permission:
|
||||
class: phpbb_db_migration_tools_permission
|
||||
arguments:
|
||||
- @db
|
||||
- @cache
|
||||
- @auth
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
||||
tags:
|
||||
- { name: migrator:tool }
|
||||
|
||||
request:
|
||||
class: phpbb_request
|
||||
|
||||
|
@@ -1,3 +1,4 @@
|
||||
parameters:
|
||||
tables.config: %core.table_prefix%config
|
||||
tables.ext: %core.table_prefix%ext
|
||||
tables.migrations: %core.table_prefix%migrations
|
||||
|
Reference in New Issue
Block a user