src/Viserio/Component/Mail/TransportFactory.php
public function createTransport(string $transport, array $config): Swift_Transport
    {
        $method = 'create' . Str::studly($transport) . 'Transport';

        $config['name'] = $transport;

        return $this->create($config, $method);
    }
public function createTransport(string $transport, array $config): Swift_Transport
    {
        $method = 'create' . Str::studly($transport) . 'Transport';

        $config['name'] = $transport;

        return $this->create($config, $method);
    }
Make a new transport instance.

@param string $transport
@param array  $config

@throws \Viserio\Component\Contract\Mail\Exception\InvalidArgumentException

@return \Swift_Transport