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

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

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

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

        return $transport;
    }
public static function createTransportFactory ( ContainerInterface $ container ) : TransportFactory { $ transport = new TransportFactory ( ) ; if ( $ container -> has ( LoggerInterface :: class ) ) { $ transport -> setLogger ( $ container -> get ( LoggerInterface :: class ) ) ; } return $ transport ; }
Create a new transport factory.

@param \Psr\Container\ContainerInterface $container

@return \Viserio\Component\Mail\TransportFactory
Create a new transport factory .