31d080a9b7
the whitelist in the session (see #36)
23 lines
698 B
YAML
Executable File
23 lines
698 B
YAML
Executable File
|
|
services:
|
|
# captcha type
|
|
captcha.type:
|
|
class: Gregwar\CaptchaBundle\Type\CaptchaType
|
|
arguments:
|
|
- @session
|
|
- @gregwar_captcha.generator
|
|
- %gregwar_captcha.config%
|
|
tags:
|
|
- { name: form.type, alias: captcha }
|
|
|
|
gregwar_captcha.generator:
|
|
class: Gregwar\CaptchaBundle\Generator\CaptchaGenerator
|
|
arguments:
|
|
- @session
|
|
- @router
|
|
- %gregwar_captcha.config.image_folder%
|
|
- %gregwar_captcha.config.web_path%
|
|
- %gregwar_captcha.config.gc_freq%
|
|
- %gregwar_captcha.config.expiration%
|
|
- %gregwar_captcha.config.whitelist_key%
|