2011-08-25 22:50:59 +02:00
|
|
|
services:
|
|
|
|
captcha.type:
|
|
|
|
class: Gregwar\CaptchaBundle\Type\CaptchaType
|
2012-11-14 04:33:36 +01:00
|
|
|
arguments:
|
|
|
|
- @session
|
|
|
|
- @gregwar_captcha.generator
|
2013-03-03 13:54:31 +01:00
|
|
|
- @translator
|
2012-11-14 04:33:36 +01:00
|
|
|
- %gregwar_captcha.config%
|
2011-08-25 22:50:59 +02:00
|
|
|
tags:
|
|
|
|
- { name: form.type, alias: captcha }
|
2012-11-14 04:33:36 +01:00
|
|
|
|
|
|
|
gregwar_captcha.generator:
|
|
|
|
class: Gregwar\CaptchaBundle\Generator\CaptchaGenerator
|
|
|
|
arguments:
|
2012-12-03 20:49:17 +01:00
|
|
|
- @router
|
2012-12-04 11:51:47 +01:00
|
|
|
- @gregwar_captcha.captcha_builder
|
|
|
|
- @gregwar_captcha.phrase_builder
|
2012-12-04 00:48:32 +01:00
|
|
|
- @gregwar_captcha.image_file_handler
|
|
|
|
|
|
|
|
gregwar_captcha.image_file_handler:
|
|
|
|
class: Gregwar\CaptchaBundle\Generator\ImageFileHandler
|
|
|
|
arguments:
|
2012-11-14 04:33:36 +01:00
|
|
|
- %gregwar_captcha.config.image_folder%
|
|
|
|
- %gregwar_captcha.config.web_path%
|
|
|
|
- %gregwar_captcha.config.gc_freq%
|
2012-12-04 11:33:54 +01:00
|
|
|
- %gregwar_captcha.config.expiration%
|
2012-12-04 00:48:32 +01:00
|
|
|
|
2012-12-04 11:51:47 +01:00
|
|
|
gregwar_captcha.captcha_builder:
|
2013-01-21 14:01:31 +01:00
|
|
|
class: Gregwar\Captcha\CaptchaBuilder
|
2012-12-04 11:51:47 +01:00
|
|
|
|
|
|
|
gregwar_captcha.phrase_builder:
|
2013-01-21 14:01:31 +01:00
|
|
|
class: Gregwar\Captcha\PhraseBuilder
|