LogTransport

class LogTransport extends Transport (View source)

Properties

array $plugins The plug-ins registered with the transport. from Transport
protected LoggerInterface $logger The Logger instance.

Methods

isStarted()

{@inheritdoc}

from Transport
start()

{@inheritdoc}

from Transport
stop()

{@inheritdoc}

from Transport
void registerPlugin(Swift_Events_EventListener $plugin)

Register a plug-in with the transport.

from Transport
void beforeSendPerformed(Swift_Mime_Message $message)

Iterate through registered plugins and execute plugins' methods.

from Transport
void sendPerformed(Swift_Mime_Message $message)

Iterate through registered plugins and execute plugins' methods.

from Transport
int numberOfRecipients(Swift_Mime_Message $message)

Get the number of recipients.

from Transport
void __construct(LoggerInterface $logger)

Create a new log transport instance.

send(Swift_Mime_Message $message, $failedRecipients = null)

{@inheritdoc}

string getMimeEntityString(Swift_Mime_MimeEntity $entity)

Get a loggable string out of a Swiftmailer entity.

Details

isStarted()

{@inheritdoc}

start()

{@inheritdoc}

stop()

{@inheritdoc}

void registerPlugin(Swift_Events_EventListener $plugin)

Register a plug-in with the transport.

Parameters

Swift_Events_EventListener $plugin

Return Value

void

protected void beforeSendPerformed(Swift_Mime_Message $message)

Iterate through registered plugins and execute plugins' methods.

Parameters

Swift_Mime_Message $message

Return Value

void

protected void sendPerformed(Swift_Mime_Message $message)

Iterate through registered plugins and execute plugins' methods.

Parameters

Swift_Mime_Message $message

Return Value

void

protected int numberOfRecipients(Swift_Mime_Message $message)

Get the number of recipients.

Parameters

Swift_Mime_Message $message

Return Value

int

void __construct(LoggerInterface $logger)

Create a new log transport instance.

Parameters

LoggerInterface $logger

Return Value

void

send(Swift_Mime_Message $message, $failedRecipients = null)

{@inheritdoc}

Parameters

Swift_Mime_Message $message
$failedRecipients

protected string getMimeEntityString(Swift_Mime_MimeEntity $entity)

Get a loggable string out of a Swiftmailer entity.

Parameters

Swift_Mime_MimeEntity $entity

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Mail/Transport/LogTransport.html