aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/services.yml
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-07-11 13:31:39 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-07-11 13:31:39 +0200
commit9f89cb4cfbbd46ad45a9c7942fc2233b489bb076 (patch)
tree50ec515cf544da9a807fd0119de2cdc506c651e5 /phpBB/config/services.yml
parent95c88e9099c7721d4436233f8d6649a10ce70c06 (diff)
downloadforums-9f89cb4cfbbd46ad45a9c7942fc2233b489bb076.tar
forums-9f89cb4cfbbd46ad45a9c7942fc2233b489bb076.tar.gz
forums-9f89cb4cfbbd46ad45a9c7942fc2233b489bb076.tar.bz2
forums-9f89cb4cfbbd46ad45a9c7942fc2233b489bb076.tar.xz
forums-9f89cb4cfbbd46ad45a9c7942fc2233b489bb076.zip
[ticket/9657] Make content visibility a service and inject everything
PHPBB3-9657
Diffstat (limited to 'phpBB/config/services.yml')
-rw-r--r--phpBB/config/services.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml
index 4b272c6abd..e256482e50 100644
--- a/phpBB/config/services.yml
+++ b/phpBB/config/services.yml
@@ -66,6 +66,19 @@ services:
- @dbal.conn
- %tables.config_text%
+ content.visibility:
+ class: phpbb_content_visibility
+ arguments:
+ - @auth
+ - @dbal.conn
+ - @user
+ - %core.root_path%
+ - %core.php_ext%
+ - %tables.forums%
+ - %tables.posts%
+ - %tables.topics%
+ - %tables.users%
+
controller.helper:
class: phpbb_controller_helper
arguments: