1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[ticket/9657] Make content visibility a service and inject everything

PHPBB3-9657
This commit is contained in:
Joas Schilling
2013-07-11 13:31:39 +02:00
parent 95c88e9099
commit 9f89cb4cfb
3 changed files with 146 additions and 94 deletions

View File

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

View File

@@ -2,10 +2,13 @@ parameters:
tables.config: %core.table_prefix%config
tables.config_text: %core.table_prefix%config_text
tables.ext: %core.table_prefix%ext
tables.forums: %core.table_prefix%forums
tables.log: %core.table_prefix%log
tables.migrations: %core.table_prefix%migrations
tables.modules: %core.table_prefix%modules
tables.notification_types: %core.table_prefix%notification_types
tables.notifications: %core.table_prefix%notifications
tables.posts: %core.table_prefix%posts
tables.topics: %core.table_prefix%topics
tables.user_notifications: %core.table_prefix%user_notifications
tables.users: %core.table_prefix%users