diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2013-07-11 13:31:39 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2013-07-11 13:31:39 +0200 |
| commit | 9f89cb4cfbbd46ad45a9c7942fc2233b489bb076 (patch) | |
| tree | 50ec515cf544da9a807fd0119de2cdc506c651e5 /phpBB/config | |
| parent | 95c88e9099c7721d4436233f8d6649a10ce70c06 (diff) | |
| download | forums-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')
| -rw-r--r-- | phpBB/config/services.yml | 13 | ||||
| -rw-r--r-- | phpBB/config/tables.yml | 3 |
2 files changed, 16 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: diff --git a/phpBB/config/tables.yml b/phpBB/config/tables.yml index ec5fec23ad..fdb448f4e0 100644 --- a/phpBB/config/tables.yml +++ b/phpBB/config/tables.yml @@ -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 |
