fix: Upgrade TranslatableStringHelper service and create its interface.

This commit is contained in:
Pol Dellaiera
2021-11-18 09:10:13 +01:00
parent 9f06bc7126
commit cc9ce4167f
3 changed files with 55 additions and 76 deletions

View File

@@ -28,11 +28,9 @@ services:
chill.main.helper.translatable_string:
class: Chill\MainBundle\Templating\TranslatableStringHelper
arguments:
- "@request_stack"
- "@translator.default"
Chill\MainBundle\Templating\TranslatableStringHelper: '@chill.main.helper.translatable_string'
Chill\MainBundle\Templating\TranslatableStringHelperInterface: '@Chill\MainBundle\Templating\TranslatableStringHelper'
chill.main.twig.translatable_string:
class: Chill\MainBundle\Templating\TranslatableStringTwig