parameters:
    phumbor.url.builder_factory.class: Thumbor\Url\BuilderFactory
    phumbor.url.transformer.class: Jb\Bundle\PhumborBundle\Transformer\BaseTransformer
    phumbor.twig.extension.class: Jb\Bundle\PhumborBundle\Twig\PhumborExtension

services:
    phumbor.url.builder_factory:
        class: '%phumbor.url.builder_factory.class%'
        arguments:
            - '%phumbor.server.url%'
            - '%phumbor.secret%'

    phumbor.url.transformer:
        class: '%phumbor.url.transformer.class%'
        arguments:
            - '@phumbor.url.builder_factory'
            - '%phumbor.transformations%'

    phumbor.twig.extension:
        class: '%phumbor.twig.extension.class%'
        arguments:
            - '@phumbor.url.transformer'
        tags:
            - { name: twig.extension }

parameters:
    phumbor.url.builder_factory.class: Thumbor\Url\BuilderFactory
    phumbor.url.transformer.class: Jb\Bundle\PhumborBundle\Transformer\BaseTransformer
    phumbor.twig.extension.class: Jb\Bundle\PhumborBundle\Twig\PhumborExtension

services:
    Thumbor\Url\BuilderFactory:
        class: '%phumbor.url.builder_factory.class%'
        arguments:
            - '%phumbor.server.url%'
            - '%phumbor.secret%'

    Jb\Bundle\PhumborBundle\Transformer\BaseTransformer:
        class: '%phumbor.url.transformer.class%'
        arguments:
            - '@Thumbor\Url\BuilderFactory'
            - '%phumbor.transformations%'

    Jb\Bundle\PhumborBundle\Twig\PhumborExtension:
        class: '%phumbor.twig.extension.class%'
        arguments:
            - '@Jb\Bundle\PhumborBundle\Transformer\BaseTransformer'
        tags:
            - { name: twig.extension }

    # Service aliases for BC:
    phumbor.url.builder_factory:
        alias: Thumbor\Url\BuilderFactory

    phumbor.url.transformer:
        alias: Jb\Bundle\PhumborBundle\Transformer\BaseTransformer

    phumbor.twig.extension:
        alias: Jb\Bundle\PhumborBundle\Twig\PhumborExtension

Add classname-based service ids to simplify autowiring
Add classname-based service ids to simplify autowiring
