Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Transport.php

function Transport::fromDsn

File

vendor/symfony/mailer/Transport.php, line 75

Class

Transport
@author Fabien Potencier <fabien@symfony.com> @author Konstantin Myakshin <molodchick@gmail.com>

Namespace

Symfony\Component\Mailer

Code

public static function fromDsn(string $dsn, ?EventDispatcherInterface $dispatcher = null, ?HttpClientInterface $client = null, ?LoggerInterface $logger = null) : TransportInterface {
    $factory = new self(iterator_to_array(self::getDefaultFactories($dispatcher, $client, $logger)));
    return $factory->fromString($dsn);
}
RSS feed
Powered by Drupal