Merge pull request #88 from mseshachalam/patch-1

Patch 1
This commit is contained in:
Grégoire Passault 2014-05-14 11:55:23 +02:00
commit 7dd05f5389
1 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,13 @@
parameters:
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: services:
captcha.type: captcha.type:
class: Gregwar\CaptchaBundle\Type\CaptchaType class: %gregwar_captcha.captcha_type.class%
arguments: arguments:
- @session - @session
- @gregwar_captcha.generator - @gregwar_captcha.generator
@ -10,7 +17,7 @@ services:
- { name: form.type, alias: captcha } - { name: form.type, alias: captcha }
gregwar_captcha.generator: gregwar_captcha.generator:
class: Gregwar\CaptchaBundle\Generator\CaptchaGenerator class: %gregwar_captcha.captcha_generator.class%
arguments: arguments:
- @router - @router
- @gregwar_captcha.captcha_builder - @gregwar_captcha.captcha_builder
@ -18,7 +25,7 @@ services:
- @gregwar_captcha.image_file_handler - @gregwar_captcha.image_file_handler
gregwar_captcha.image_file_handler: gregwar_captcha.image_file_handler:
class: Gregwar\CaptchaBundle\Generator\ImageFileHandler class: %gregwar_captcha.image_file_handler.class%
arguments: arguments:
- %gregwar_captcha.config.image_folder% - %gregwar_captcha.config.image_folder%
- %gregwar_captcha.config.web_path% - %gregwar_captcha.config.web_path%
@ -26,7 +33,7 @@ services:
- %gregwar_captcha.config.expiration% - %gregwar_captcha.config.expiration%
gregwar_captcha.captcha_builder: gregwar_captcha.captcha_builder:
class: Gregwar\Captcha\CaptchaBuilder class: %gregwar_captcha.captcha_builder.class%
gregwar_captcha.phrase_builder: gregwar_captcha.phrase_builder:
class: Gregwar\Captcha\PhraseBuilder class: %gregwar_captcha.phrase_builder.class%