services :
    # default configuration for services in *this* file
    _defaults :
        # automatically injects dependencies in your services
        autowire : true
        # automatically registers your services as commands, event subscribers, etc.
        autoconfigure : true
        # this means you cannot fetch services directly from the container via $container->get()
        # if you need to do this, you can override this setting on individual services
        public : false

    # controllers are imported separately to make sure they're public
    # and have a tag that allows actions to type-hint services
    DamReactPortal\ApiBundle\Controller\ :
        resource : '../../Controller'
        public : true
        tags : [ 'controller.service_arguments' ]

    # add more services, or override services that need manual wiring
    #    DamReactPortal\ApiBundle\ExampleClass:
    #        arguments:
    #            - "@service_id"
    #            - "plain_value"
    #            - "%parameter%"
    DamReactPortal\ApiBundle\Service\UserService : ~

    login_bundle.security.user_provider :
        class : Pimcore\Security\User\ObjectUserProvider
        arguments : [ 'DamReactPortal\ApiBundle\Model\DataObject\User', 'username' ]

    security.encoder_factory :
        class : Pimcore\Security\Encoder\Factory\UserAwareEncoderFactory
        arguments :
            - Pimcore\Security\Encoder\PasswordFieldEncoder
            - [ 'password' ]
        public : true

    Pimcore\Security\Encoder\PasswordFieldEncoder :
        arguments :
            - [ 'password' ]
    DamReactPortal\ApiBundle\Model\Asset :
        class : DamReactPortal\ApiBundle\Model\Asset
        arguments :
            $repositoryServiceLocator : '@App\Service\RepositoryServiceLocator'

    DamReactPortal\ApiBundle\Service\PasswordService :
        calls :
            -   method : setContainer
                arguments :
                    - '@service_container'
    League\Flysystem\Filesystem :
        alias : 'assets_filesystem'
    DamReactPortal\ApiBundle\Controller\SingleDamDownloadAzureBlobController :
        arguments :
            $downloadService : '@App\Service\DownloadService'
            $azureBlobPath : '%env(AZURE_BLOBPATH)%'