services:
    lightmaker_aws:
        class:          Aws\Common\Aws
        factory_class:  Aws\Common\Aws
        factory_method: factory
        arguments: [%lightmaker_aws.config%]
services:
    lightmaker_aws.factory:
        class: Aws\Common\Aws
    lightmaker_aws:
        class: Aws\Common\Aws
        factory: ["@lightmaker_aws.factory", factory]
        arguments: [%lightmaker_aws.config%]
Use `setFactory` method for Symfony >=2.6 compatibility.
fix: Use `setFactory` method for Symfony >=2.6 compatibility.
