Adding TranslatableStringFormType.php

This commit is contained in:
Marc Ducobu
2014-11-08 11:04:35 +01:00
parent 394decb579
commit b0ac03acd7
4 changed files with 57 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ services:
#must be set in function to avoid circular reference with chill.main.twig.chill_menu
calls:
- [setContainer, ["@service_container"]]
chill.main.twig.chill_menu:
class: Chill\MainBundle\Routing\MenuTwig
arguments:
@@ -16,3 +16,12 @@ services:
- [setContainer, ["@service_container"]]
tags:
- { name: twig.extension }
chill.main.form.type.translatable.string:
class: Chill\MainBundle\Form\Type\TranslatableStringFormType
arguments:
- "%chill_main.available_languages%"
#- "%framework.translator.fallback%"
- "%locale%"
tags:
- { name: form.type, alias: translatable_string }