From 0971f224f4db3344382dbca9189cc98ada3e4fc0 Mon Sep 17 00:00:00 2001 From: Restless-ET Date: Sat, 5 Dec 2015 00:52:50 +0000 Subject: [PATCH] Fix YAML syntax in services.yml file The '@' character is supposed to be a reserved indicator for YAML. Therefore when using it at the beginning of a string (as in this case) we should enclose it in quotes. http://yaml.org/spec/1.2/spec.html#id2774228 Also, since Symfony 2.8 this kind of usage is already marked as deprecated: https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md#yaml --- Resources/config/services.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Resources/config/services.yml b/Resources/config/services.yml index 7b552ca..4dbfa15 100755 --- a/Resources/config/services.yml +++ b/Resources/config/services.yml @@ -9,9 +9,9 @@ services: captcha.type: class: %gregwar_captcha.captcha_type.class% arguments: - - @session - - @gregwar_captcha.generator - - @translator + - '@session' + - '@gregwar_captcha.generator' + - '@translator' - %gregwar_captcha.config% tags: - { name: form.type, alias: captcha } @@ -19,10 +19,10 @@ services: gregwar_captcha.generator: class: %gregwar_captcha.captcha_generator.class% arguments: - - @router - - @gregwar_captcha.captcha_builder - - @gregwar_captcha.phrase_builder - - @gregwar_captcha.image_file_handler + - '@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%