library/Storage/Adapter/Cdn/Amazon/CloudFront/CloudFrontServiceAbstractFactory.php
public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
    {
        $config = $this->getConfig($serviceLocator)[$requestedName];
        /** @var $sdk Sdk */
        $adapter = new CloudFrontService($serviceLocator->get(ClientManager::class)->get($config['client']));

        $adapter->setOrigin($config['origin']);

        if (isset($config['scheme'])) {
            $adapter->setScheme($config['scheme']);
        }

        return $adapter->setDomain($config['domain']);
    }
public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
    {
        $config = $this->getConfig($serviceLocator)[$requestedName];
        /** @var $sdk Sdk */
        $adapter = new CloudFrontService($serviceLocator->get(ClientManager::class)->get($config['client']));

        $adapter->setOrigin($config['origin']);

        if (isset($config['scheme'])) {
            $adapter->setScheme($config['scheme']);
        }

        return $adapter->setDomain($config['domain']);
    }
Create service with name

@param ServiceLocatorInterface $serviceLocator
@param string $name
@param string $requestedName
@return CloudFrontService