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

[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
This commit is contained in:
Joas Schilling
2012-12-09 23:47:46 +01:00
parent 7f1b0eeb71
commit 83b8b65016
3 changed files with 129 additions and 46 deletions

View File

@@ -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

View File

@@ -1,3 +1,4 @@
parameters:
tables.config: %core.table_prefix%config
tables.ext: %core.table_prefix%ext
tables.log: %core.table_prefix%log