TransportManager
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
Get the default mail driver name.
Dynamically call the default driver instance.
Create an instance of the SMTP Swift Transport driver.
Configure the additional SMTP driver options.
Create an instance of the Sendmail Swift Transport driver.
Create an instance of the Amazon SES Swift Transport driver.
Add the SES credentials to the configuration array.
Create an instance of the Mail Swift Transport driver.
Create an instance of the Mailgun Swift Transport driver.
Create an instance of the Postmark Swift Transport driver.
Create an instance of the Log Swift Transport driver.
Create an instance of the Array Swift Transport Driver.
Get a fresh Guzzle HTTP client instance.
Set the default mail driver name.
Details
void
__construct(Container $container)
Create a new manager instance.
string
getDefaultDriver()
Get the default mail driver name.
mixed
driver(string $driver = null)
Get a driver instance.
protected mixed
createDriver(string $driver)
Create a new driver instance.
protected mixed
callCustomCreator(string $driver)
Call a custom driver creator.
$this
extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
array
getDrivers()
Get all of the created "drivers".
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.
protected Swift_SmtpTransport
createSmtpDriver()
Create an instance of the SMTP Swift Transport driver.
protected Swift_SmtpTransport
configureSmtpDriver(Swift_SmtpTransport $transport, array $config)
Configure the additional SMTP driver options.
protected Swift_SendmailTransport
createSendmailDriver()
Create an instance of the Sendmail Swift Transport driver.
protected SesTransport
createSesDriver()
Create an instance of the Amazon SES Swift Transport driver.
protected array
addSesCredentials(array $config)
Add the SES credentials to the configuration array.
protected Swift_SendmailTransport
createMailDriver()
Create an instance of the Mail Swift Transport driver.
protected MailgunTransport
createMailgunDriver()
Create an instance of the Mailgun Swift Transport driver.
protected Swift_Transport
createPostmarkDriver()
Create an instance of the Postmark Swift Transport driver.
protected LogTransport
createLogDriver()
Create an instance of the Log Swift Transport driver.
protected ArrayTransport
createArrayDriver()
Create an instance of the Array Swift Transport Driver.
protected Client
guzzle(array $config)
Get a fresh Guzzle HTTP client instance.
void
setDefaultDriver(string $name)
Set the default mail driver name.