class TransportManager extends Manager (View source)

Properties

protected Container $container

The container instance.

from  Manager
protected Container deprecated $app

The container instance.

from  Manager
protected Repository $config

The configuration repository 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(Container $container)

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_SmtpTransport
configureSmtpDriver(Swift_SmtpTransport $transport, array $config)

Configure the additional SMTP driver options.

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.

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(Container $container)

Create a new manager instance.

Parameters

Container $container

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_SmtpTransport configureSmtpDriver(Swift_SmtpTransport $transport, array $config)

Configure the additional SMTP driver options.

Parameters

Swift_SmtpTransport $transport
array $config

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 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