28 lines
939 B
YAML
Executable File
28 lines
939 B
YAML
Executable File
services:
|
|
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.image_builder
|
|
- @gregwar_captcha.image_file_handler
|
|
|
|
gregwar_captcha.image_file_handler:
|
|
class: Gregwar\CaptchaBundle\Generator\ImageFileHandler
|
|
arguments:
|
|
- %gregwar_captcha.config.image_folder%
|
|
- %gregwar_captcha.config.web_path%
|
|
- %gregwar_captcha.config.gc_freq%
|
|
- %gregwar_captcha.config.expiration%
|
|
|
|
gregwar_captcha.image_builder:
|
|
class: Gregwar\CaptchaBundle\Generator\ImageBuilder |