class TransportManager extends Manager (View source)

Properties

protected Application $app The application instance. from Manager
protected array $customCreators The registered custom driver creators. from Manager
protected array $drivers The array of created "drivers". from Manager

Methods

void
__construct(Application $app)

Create a new manager instance.

from Manager
string
getDefaultDriver()

Get the default mail driver name.

mixed
driver(string $driver = null)

Get a driver instance.

from Manager
mixed
createDriver(string $driver)

Create a new driver instance.

from Manager
mixed
callCustomCreator(string $driver)

Call a custom driver creator.

from Manager
$this
extend(string $driver, Closure $callback)

Register a custom driver creator Closure.

from Manager
array
getDrivers()

Get all of the created "drivers".

from Manager
mixed
__call(string $method, array $parameters)

Dynamically call the default driver instance.

from Manager
Swift_SmtpTransport
createSmtpDriver()

Create an instance of the SMTP Swift Transport driver.

Swift_SendmailTransport
createSendmailDriver()

Create an instance of the Sendmail Swift Transport driver.

createSesDriver()

Create an instance of the Amazon SES Swift Transport driver.

array
addSesCredentials(array $config)

Add the SES credentials to the configuration array.

Swift_SendmailTransport
createMailDriver()

Create an instance of the Mail Swift Transport driver.

createMailgunDriver()

Create an instance of the Mailgun Swift Transport driver.

createMandrillDriver()

Create an instance of the Mandrill Swift Transport driver.

createSparkPostDriver()

Create an instance of the SparkPost Swift Transport driver.

Swift_Transport
createPostmarkDriver()

Create an instance of the Postmark Swift Transport driver.

createLogDriver()

Create an instance of the Log Swift Transport driver.

createArrayDriver()

Create an instance of the Array Swift Transport Driver.

Client
guzzle(array $config)

Get a fresh Guzzle HTTP client instance.

void
setDefaultDriver(string $name)

Set the default mail driver name.

Details

void __construct(Application $app)

Create a new manager instance.

Parameters

Application $app

Return Value

void

string getDefaultDriver()

Get the default mail driver name.

Return Value

string

mixed driver(string $driver = null)

Get a driver instance.

Parameters

string $driver

Return Value

mixed

Exceptions

InvalidArgumentException

protected mixed createDriver(string $driver)

Create a new driver instance.

Parameters

string $driver

Return Value

mixed

Exceptions

InvalidArgumentException

protected mixed callCustomCreator(string $driver)

Call a custom driver creator.

Parameters

string $driver

Return Value

mixed

$this extend(string $driver, Closure $callback)

Register a custom driver creator Closure.

Parameters

string $driver
Closure $callback

Return Value

$this

array getDrivers()

Get all of the created "drivers".

Return Value

array

mixed __call(string $method, array $parameters)

Dynamically call the default driver instance.

Parameters

string $method
array $parameters

Return Value

mixed

protected Swift_SmtpTransport createSmtpDriver()

Create an instance of the SMTP Swift Transport driver.

Return Value

Swift_SmtpTransport

protected Swift_SendmailTransport createSendmailDriver()

Create an instance of the Sendmail Swift Transport driver.

Return Value

Swift_SendmailTransport

protected SesTransport createSesDriver()

Create an instance of the Amazon SES Swift Transport driver.

Return Value

SesTransport

protected array addSesCredentials(array $config)

Add the SES credentials to the configuration array.

Parameters

array $config

Return Value

array

protected Swift_SendmailTransport createMailDriver()

Create an instance of the Mail Swift Transport driver.

Return Value

Swift_SendmailTransport

protected MailgunTransport createMailgunDriver()

Create an instance of the Mailgun Swift Transport driver.

Return Value

MailgunTransport

protected MandrillTransport createMandrillDriver()

Create an instance of the Mandrill Swift Transport driver.

Return Value

MandrillTransport

protected SparkPostTransport createSparkPostDriver()

Create an instance of the SparkPost Swift Transport driver.

Return Value

SparkPostTransport

protected Swift_Transport createPostmarkDriver()

Create an instance of the Postmark Swift Transport driver.

Return Value

Swift_Transport

protected LogTransport createLogDriver()

Create an instance of the Log Swift Transport driver.

Return Value

LogTransport

protected ArrayTransport createArrayDriver()

Create an instance of the Array Swift Transport Driver.

Return Value

ArrayTransport

protected Client guzzle(array $config)

Get a fresh Guzzle HTTP client instance.

Parameters

array $config

Return Value

Client

void setDefaultDriver(string $name)

Set the default mail driver name.

Parameters

string $name

Return Value

void