diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-08-08 18:02:03 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-08-11 01:15:49 +0200 |
commit | 160ff7b912243dc14d871b820213ddcd20dd06f4 (patch) | |
tree | d6d2f0e7fa38cc5944c7a0fa438c1deea2adc1c6 /phpBB/config | |
parent | e0d377bca70cff7846ba920a03b717aac1d208a4 (diff) | |
download | forums-160ff7b912243dc14d871b820213ddcd20dd06f4.tar forums-160ff7b912243dc14d871b820213ddcd20dd06f4.tar.gz forums-160ff7b912243dc14d871b820213ddcd20dd06f4.tar.bz2 forums-160ff7b912243dc14d871b820213ddcd20dd06f4.tar.xz forums-160ff7b912243dc14d871b820213ddcd20dd06f4.zip |
[ticket/11854] Move captcha stuff to phpbb/ and use DI for plugins
PHPBB3-11854
Diffstat (limited to 'phpBB/config')
-rw-r--r-- | phpBB/config/captcha.yml | 43 | ||||
-rw-r--r-- | phpBB/config/services.yml | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/phpBB/config/captcha.yml b/phpBB/config/captcha.yml new file mode 100644 index 0000000000..527dba2257 --- /dev/null +++ b/phpBB/config/captcha.yml @@ -0,0 +1,43 @@ +services: + captchas.factory: + class: phpbb\captcha\factory + arguments: + - @service_container + - @captchas.plugins.service_collection + + captchas.plugins.service_collection: + class: phpbb\di\service_collection + arguments: + - @service_container + tags: + - { name: service_collection, tag: captchas.plugins } + + core.captcha.plugins.gd: + class: phpbb\captcha\plugins\gd + scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work! + tags: + - { name: captchas.plugins } + + core.captcha.plugins.gd_wave: + class: phpbb\captcha\plugins\gd_wave + scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work! + tags: + - { name: captchas.plugins } + + core.captcha.plugins.nogd: + class: phpbb\captcha\plugins\nogd + scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work! + tags: + - { name: captchas.plugins } + + core.captcha.plugins.qa: + class: phpbb\captcha\plugins\qa + scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work! + tags: + - { name: captchas.plugins } + + core.captcha.plugins.recaptcha: + class: phpbb\captcha\plugins\recaptcha + scope: prototype # scope MUST be prototype for this to work! # scope MUST be prototype for this to work! + tags: + - { name: captchas.plugins } diff --git a/phpBB/config/services.yml b/phpBB/config/services.yml index 6b06deb256..a588046245 100644 --- a/phpBB/config/services.yml +++ b/phpBB/config/services.yml @@ -10,6 +10,7 @@ imports: - { resource: mimetype_guessers.yml } - { resource: passwords.yml } - { resource: profilefields.yml } + - { resource: captcha.yml } - { resource: parameters.yml } services: |