aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-12-09 23:47:46 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-12-09 23:47:46 +0100
commit83b8b65016f172baa65cbbb463015602c97e9e45 (patch)
tree08bd53debdebc1827159c04b5a5685c495874ff6 /phpBB/config
parent7f1b0eeb711c57de82235d7893d793969ed0cfdd (diff)
downloadforums-83b8b65016f172baa65cbbb463015602c97e9e45.tar
forums-83b8b65016f172baa65cbbb463015602c97e9e45.tar.gz
forums-83b8b65016f172baa65cbbb463015602c97e9e45.tar.bz2
forums-83b8b65016f172baa65cbbb463015602c97e9e45.tar.xz
forums-83b8b65016f172baa65cbbb463015602c97e9e45.zip
[ticket/10714] Use dependencies instead of globals
We use a setter for the admin root path, as it is not defined all the time. Aswell as we added a setter for the table name, so it can still be used for custom tables. PHPBB3-10714
Diffstat (limited to 'phpBB/config')
-rw-r--r--phpBB/config/services.yml11
-rw-r--r--phpBB/config/tables.yml1
2 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml
index 37e6c0b5df..73d8680803 100644
--- a/phpBB/config/services.yml
+++ b/phpBB/config/services.yml
@@ -154,6 +154,17 @@ services:
tags:
- { name: kernel.event_subscriber }
+ log:
+ class: phpbb_log
+ arguments:
+ - @dbal.conn
+ - @user
+ - @auth
+ - @dispatcher
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.log%
+
request:
class: phpbb_request
diff --git a/phpBB/config/tables.yml b/phpBB/config/tables.yml
index cfc6dbcfed..b506e6c6b3 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.log: %core.table_prefix%log