public static function createTransportFactory(ContainerInterface $container): TransportFactory
    {
        $transport = new TransportFactory();

        if ($container->has(LoggerInterface::class)) {
            $transport->setLogger($container->get(LoggerInterface::class));
        }

        return $transport;
    }