aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-01-08 22:07:26 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2013-01-09 16:44:05 -0600
commit6c44dadecbf50d6550f98dd1e1694519f39be680 (patch)
treed23243249bdea3eea2097136c2c79e471c3bd1e4 /phpBB/config
parent41de95bc11c0b64eafa294f03432f619d3d712d5 (diff)
downloadforums-6c44dadecbf50d6550f98dd1e1694519f39be680.tar
forums-6c44dadecbf50d6550f98dd1e1694519f39be680.tar.gz
forums-6c44dadecbf50d6550f98dd1e1694519f39be680.tar.bz2
forums-6c44dadecbf50d6550f98dd1e1694519f39be680.tar.xz
forums-6c44dadecbf50d6550f98dd1e1694519f39be680.zip
[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
Diffstat (limited to 'phpBB/config')
-rw-r--r--phpBB/config/services.yml45
-rw-r--r--phpBB/config/tables.yml1
2 files changed, 46 insertions, 0 deletions
diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml
index 5c450a5cf6..4125491dd0 100644
--- a/phpBB/config/services.yml
+++ b/phpBB/config/services.yml
@@ -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
diff --git a/phpBB/config/tables.yml b/phpBB/config/tables.yml
index cfc6dbcfed..a9414cf66c 100644
--- a/phpBB/config/tables.yml
+++ b/phpBB/config/tables.yml
@@ -1,3 +1,4 @@
parameters:
tables.config: %core.table_prefix%config
tables.ext: %core.table_prefix%ext
+ tables.migrations: %core.table_prefix%migrations