library/Storage/Adapter/Cdn/Amazon/S3/S3ServiceAbstractFactory.php
public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
    {
        $config = $this->getConfig($serviceLocator)[$requestedName];
        /** @var $sdk Sdk */
        $adapter = new S3Service($serviceLocator->get(ClientManager::class)->get($config['client']));
        return $adapter->setBucket($config['bucket']);
    }
public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
    {
        $config = $this->getConfig($serviceLocator)[$requestedName];
        /** @var $sdk Sdk */
        $adapter = new S3Service($serviceLocator->get(ClientManager::class)->get($config['client']));
        return $adapter->setBucket($config['bucket']);
    }
Create service with name

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