CaptchaBundle/Resources/config/services.yml

58 lines
2.0 KiB
YAML
Raw Normal View History

parameters:
gregwar_captcha.controller.class: Gregwar\CaptchaBundle\Controller\CaptchaController
gregwar_captcha.captcha_type.class: Gregwar\CaptchaBundle\Type\CaptchaType
gregwar_captcha.captcha_generator.class: Gregwar\CaptchaBundle\Generator\CaptchaGenerator
gregwar_captcha.image_file_handler.class: Gregwar\CaptchaBundle\Generator\ImageFileHandler
gregwar_captcha.captcha_builder.class: Gregwar\Captcha\CaptchaBuilder
gregwar_captcha.phrase_builder.class: Gregwar\Captcha\PhraseBuilder
services:
Gregwar\CaptchaBundle\Controller\CaptchaController:
public: true
alias: 'gregwar_captcha.controller'
gregwar_captcha.controller:
class: '%gregwar_captcha.controller.class%'
public: true
arguments:
- '@gregwar_captcha.generator'
- '%gregwar_captcha.config%'
# captcha.type:
gregwar_captcha.type:
2017-12-28 11:30:19 +01:00
class: '%gregwar_captcha.captcha_type.class%'
public: true
arguments:
- '@session'
- '@gregwar_captcha.generator'
- '@translator'
- '%gregwar_captcha.config%'
tags:
- { name: form.type, alias: captcha }
gregwar_captcha.generator:
class: '%gregwar_captcha.captcha_generator.class%'
2017-12-28 11:30:19 +01:00
public: true
arguments:
- '@router'
- '@gregwar_captcha.captcha_builder'
- '@gregwar_captcha.phrase_builder'
- '@gregwar_captcha.image_file_handler'
gregwar_captcha.image_file_handler:
class: '%gregwar_captcha.image_file_handler.class%'
2017-12-28 11:30:19 +01:00
public: true
arguments:
- '%gregwar_captcha.config.image_folder%'
- '%gregwar_captcha.config.web_path%'
- '%gregwar_captcha.config.gc_freq%'
- '%gregwar_captcha.config.expiration%'
gregwar_captcha.captcha_builder:
class: '%gregwar_captcha.captcha_builder.class%'
2017-12-28 11:30:19 +01:00
public: true
gregwar_captcha.phrase_builder:
class: '%gregwar_captcha.phrase_builder.class%'
2017-12-28 11:30:19 +01:00
public: true