Transport
in package
Tags
Table of Contents
- FACTORY_CLASSES = [\Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory::class, \Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory::class, \Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFactory::class, \Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory::class, \Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory::class, \Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory::class]
- $factories : mixed
- __construct() : mixed
- fromDsn() : TransportInterface
- fromDsnObject() : TransportInterface
- fromDsns() : TransportInterface
- fromString() : TransportInterface
- fromStrings() : Transports
- getDefaultFactories() : iteratable<string|int, mixed>
- parseDsn() : array<string|int, mixed>
Constants
FACTORY_CLASSES
private
mixed
FACTORY_CLASSES
= [\Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory::class, \Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory::class, \Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFactory::class, \Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory::class, \Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory::class, \Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory::class]
Properties
$factories
private
mixed
$factories
Methods
__construct()
public
__construct(array<string|int, TransportFactoryInterface> $factories) : mixed
Parameters
- $factories : array<string|int, TransportFactoryInterface>
Return values
mixed —fromDsn()
public
static fromDsn(string $dsn[, EventDispatcherInterface $dispatcher = null ][, HttpClientInterface $client = null ][, LoggerInterface $logger = null ]) : TransportInterface
Parameters
- $dsn : string
- $dispatcher : EventDispatcherInterface = null
- $client : HttpClientInterface = null
- $logger : LoggerInterface = null
Return values
TransportInterface —fromDsnObject()
public
fromDsnObject(Dsn $dsn) : TransportInterface
Parameters
- $dsn : Dsn
Return values
TransportInterface —fromDsns()
public
static fromDsns(array<string|int, mixed> $dsns[, EventDispatcherInterface $dispatcher = null ][, HttpClientInterface $client = null ][, LoggerInterface $logger = null ]) : TransportInterface
Parameters
- $dsns : array<string|int, mixed>
- $dispatcher : EventDispatcherInterface = null
- $client : HttpClientInterface = null
- $logger : LoggerInterface = null
Return values
TransportInterface —fromString()
public
fromString(string $dsn) : TransportInterface
Parameters
- $dsn : string
Return values
TransportInterface —fromStrings()
public
fromStrings(array<string|int, mixed> $dsns) : Transports
Parameters
- $dsns : array<string|int, mixed>
Return values
Transports —getDefaultFactories()
private
static getDefaultFactories([EventDispatcherInterface $dispatcher = null ][, HttpClientInterface $client = null ][, LoggerInterface $logger = null ]) : iteratable<string|int, mixed>
Parameters
- $dispatcher : EventDispatcherInterface = null
- $client : HttpClientInterface = null
- $logger : LoggerInterface = null
Return values
iteratable<string|int, mixed> —parseDsn()
private
parseDsn(string $dsn, int $offset) : array<string|int, mixed>
Parameters
- $dsn : string
- $offset : int