diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-08-10 13:15:07 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-08-11 01:16:35 +0200 |
commit | e889b8f9318ab8e6324f6d5ca4fedc08ce418c8f (patch) | |
tree | be5e665be6b56f59f4c8498c6621415fe6a99170 /phpBB/config | |
parent | 02f3b74e8a7259560f48b6fdf06c3bbd8aa09dbb (diff) | |
download | forums-e889b8f9318ab8e6324f6d5ca4fedc08ce418c8f.tar forums-e889b8f9318ab8e6324f6d5ca4fedc08ce418c8f.tar.gz forums-e889b8f9318ab8e6324f6d5ca4fedc08ce418c8f.tar.bz2 forums-e889b8f9318ab8e6324f6d5ca4fedc08ce418c8f.tar.xz forums-e889b8f9318ab8e6324f6d5ca4fedc08ce418c8f.zip |
[ticket/11854] Remove constants and use DI for QA tables
PHPBB3-11854
Diffstat (limited to 'phpBB/config')
-rw-r--r-- | phpBB/config/captcha.yml | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/phpBB/config/captcha.yml b/phpBB/config/captcha.yml index 0774319f93..15d6a4ce3d 100644 --- a/phpBB/config/captcha.yml +++ b/phpBB/config/captcha.yml @@ -1,3 +1,8 @@ +parameters: + tables.captcha_qa_questions: %core.table_prefix%captcha_questions + tables.captcha_qa_answers: %core.table_prefix%captcha_answers + tables.captcha_qa_confirm: %core.table_prefix%qa_confirm + services: captcha.factory: class: phpbb\captcha\factory @@ -10,34 +15,38 @@ services: arguments: - @service_container tags: - - { name: service_collection, tag: captchas.plugins } + - { name: service_collection, tag: captcha.plugins } core.captcha.plugins.gd: class: phpbb\captcha\plugins\gd scope: prototype # scope MUST be prototype for this to work! tags: - - { name: captchas.plugins } + - { name: captcha.plugins } core.captcha.plugins.gd_wave: class: phpbb\captcha\plugins\gd_wave scope: prototype # scope MUST be prototype for this to work! tags: - - { name: captchas.plugins } + - { name: captcha.plugins } core.captcha.plugins.nogd: class: phpbb\captcha\plugins\nogd scope: prototype # scope MUST be prototype for this to work! tags: - - { name: captchas.plugins } + - { name: captcha.plugins } core.captcha.plugins.qa: class: phpbb\captcha\plugins\qa scope: prototype # scope MUST be prototype for this to work! + arguments: + - %tables.captcha_qa_questions% + - %tables.captcha_qa_answers% + - %tables.captcha_qa_confirm% tags: - - { name: captchas.plugins } + - { name: captcha.plugins } core.captcha.plugins.recaptcha: class: phpbb\captcha\plugins\recaptcha scope: prototype # scope MUST be prototype for this to work! tags: - - { name: captchas.plugins } + - { name: captcha.plugins } |