1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/11854] Use a set_name method instead of overriding get_service_name

PHPBB3-11854
This commit is contained in:
Tristan Darricau
2014-08-10 15:10:14 +02:00
parent 76633544ee
commit fa2ac1f271
6 changed files with 46 additions and 27 deletions

View File

@@ -20,18 +20,24 @@ services:
core.captcha.plugins.gd:
class: phpbb\captcha\plugins\gd
scope: prototype # scope MUST be prototype for this to work!
calls:
- [set_name, [core.captcha.plugins.gd]]
tags:
- { name: captcha.plugins }
core.captcha.plugins.gd_wave:
class: phpbb\captcha\plugins\gd_wave
scope: prototype # scope MUST be prototype for this to work!
calls:
- [set_name, [core.captcha.plugins.gd_wave]]
tags:
- { name: captcha.plugins }
core.captcha.plugins.nogd:
class: phpbb\captcha\plugins\nogd
scope: prototype # scope MUST be prototype for this to work!
calls:
- [set_name, [core.captcha.plugins.nogd]]
tags:
- { name: captcha.plugins }
@@ -42,11 +48,15 @@ services:
- %tables.captcha_qa_questions%
- %tables.captcha_qa_answers%
- %tables.captcha_qa_confirm%
calls:
- [set_name, [core.captcha.plugins.qa]]
tags:
- { name: captcha.plugins }
core.captcha.plugins.recaptcha:
class: phpbb\captcha\plugins\recaptcha
scope: prototype # scope MUST be prototype for this to work!
calls:
- [set_name, [core.captcha.plugins.recaptcha]]
tags:
- { name: captcha.plugins }