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

Breadcrumb

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

function Transport::fromDsns

File

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

Class

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

Namespace

Symfony\Component\Mailer

Code

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