protected function createSesTransport(array $config): SesTransport
    {
        $config += [
            'version' => 'latest',
            'service' => 'email',
        ];

        if (isset($config['key'], $config['secret'])) {
            $config['credentials'] = \array_intersect_key($config, \array_flip(['key', 'secret', 'token']));
        }

        return new SesTransport(new SesClient($config));
    }
protected function createSesTransport(array $config): SesTransport
    {
        $config += [
            'version' => 'latest',
            'service' => 'email',
        ];

        if (isset($config['key'], $config['secret'])) {
            $config['credentials'] = \array_intersect_key($config, \array_flip(['key', 'secret', 'token']));
        }

        return new SesTransport(new SesClient($config));
    }
protected function createSesTransport ( array $ config ) : SesTransport { $ config += [ 'version' => 'latest' , 'service' => 'email' , ] ; if ( isset ( $ config [ 'key' ] , $ config [ 'secret' ] ) ) { $ config [ 'credentials' ] = \ array_intersect_key ( $ config , \ array_flip ( [ 'key' , 'secret' , 'token' ] ) ) ; } return new SesTransport ( new SesClient ( $ config ) ) ; }
Create an instance of the Amazon SES Swift Transport driver.

@param array $config

@throws \InvalidArgumentException

@return \Viserio\Component\Mail\Transport\SesTransport
Create an instance of the Amazon SES Swift Transport driver .