# Services are enabled via configuration, hence the twig.extension tag is not
# added in these services.
services:

# Fabien Potencier' Twig Extensions
    dms_twig_extension.fabpot.array:
        class: Twig_Extensions_Extension_Array

    dms_twig_extension.fabpot.date:
        class: Twig_Extensions_Extension_Date
        arguments:
            translator: "@translator"

    dms_twig_extension.fabpot.i18n:
        class: Twig_Extensions_Extension_I18n

    dms_twig_extension.fabpot.intl:
        class: Twig_Extensions_Extension_Intl

    dms_twig_extension.fabpot.text:
        class: Twig_Extensions_Extension_Text

# DMS Twig Extensions
    dms_twig_extension.dms.textual_date:
        class: DMS\Bundle\TwigExtensionBundle\Twig\Date\TextualDateExtension
        arguments:
            translator: "@translator"
    dms_twig_extension.dms.pad_string:
        class: DMS\Bundle\TwigExtensionBundle\Twig\Text\PadStringExtension

# Services are enabled via configuration, hence the twig.extension tag is not
# added in these services.
services:

# Fabien Potencier' Twig Extensions
    dms_twig_extension.fabpot.array:
        class: Twig_Extensions_Extension_Array

    dms_twig_extension.fabpot.date:
        class: Twig_Extensions_Extension_Date
        arguments:
            $translator: "@translator"

    dms_twig_extension.fabpot.i18n:
        class: Twig_Extensions_Extension_I18n

    dms_twig_extension.fabpot.intl:
        class: Twig_Extensions_Extension_Intl

    dms_twig_extension.fabpot.text:
        class: Twig_Extensions_Extension_Text

# DMS Twig Extensions
    dms_twig_extension.dms.textual_date:
        class: DMS\Bundle\TwigExtensionBundle\Twig\Date\TextualDateExtension
        arguments:
            $translator: "@translator"
    dms_twig_extension.dms.pad_string:
        class: DMS\Bundle\TwigExtensionBundle\Twig\Text\PadStringExtension

Use $named argument in service definition
Use $named argument in service definition

only integer or $named arguments are allowed as of Symfony 3.3
