1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13487] Add factory for db tool class

This allows us to split up the large file one by one easily.

PHPBB3-13487
This commit is contained in:
Joas Schilling
2015-01-10 15:43:18 +01:00
parent 45ccd2d44a
commit 11b6bc5722
2 changed files with 40 additions and 0 deletions

View File

@@ -9,8 +9,13 @@ services:
calls:
- [sql_connect, [%dbal.dbhost%, %dbal.dbuser%, %dbal.dbpasswd%, %dbal.dbname%, %dbal.dbport%, false, %dbal.new_link%]]
# ----- DB Tools -----
dbal.tools.factory:
class: phpbb\db\tools\factory
dbal.tools:
class: phpbb\db\tools\tools
factory: ["@dbal.tools.factory", get]
arguments:
- @dbal.conn