2011-08-25 22:50:59 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
# captcha type
|
|
|
|
captcha.type:
|
|
|
|
class: Gregwar\CaptchaBundle\Type\CaptchaType
|
2012-11-14 04:33:36 +01:00
|
|
|
arguments:
|
|
|
|
- @session
|
|
|
|
- @gregwar_captcha.generator
|
|
|
|
- %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:
|
|
|
|
- @session
|
|
|
|
- %gregwar_captcha.config.image_folder%
|
|
|
|
- %gregwar_captcha.config.web_path%
|
|
|
|
- %gregwar_captcha.config.gc_freq%
|
|
|
|
- %gregwar_captcha.config.expiration%
|
|
|
|
- %gregwar_captcha.config.url%
|