ArrayTransport

class ArrayTransport extends Transport (View source)

Properties

array $plugins The plug-ins registered with the transport. from Transport
protected Collection $messages The collection of Swift Messages.

Methods

isStarted()

{@inheritdoc}

from Transport
start()

{@inheritdoc}

from Transport
stop()

{@inheritdoc}

from Transport
ping()

{@inheritdoc}

from Transport
void registerPlugin(Swift_Events_EventListener $plugin)

Register a plug-in with the transport.

from Transport
void beforeSendPerformed(Swift_Mime_SimpleMessage $message)

Iterate through registered plugins and execute plugins' methods.

from Transport
void sendPerformed(Swift_Mime_SimpleMessage $message)

Iterate through registered plugins and execute plugins' methods.

from Transport
int numberOfRecipients(Swift_Mime_SimpleMessage $message)

Get the number of recipients.

from Transport
void __construct()

Create a new array transport instance.

send(Swift_Mime_SimpleMessage $message, $failedRecipients = null)

{@inheritdoc}

Collection messages()

Retrieve the collection of messages.

Collection flush()

Clear all of the messages from the local collection.

Details

isStarted()

{@inheritdoc}

start()

{@inheritdoc}

stop()

{@inheritdoc}

ping()

{@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_SimpleMessage $message)

Iterate through registered plugins and execute plugins' methods.

Parameters

Swift_Mime_SimpleMessage $message

Return Value

void

protected void sendPerformed(Swift_Mime_SimpleMessage $message)

Iterate through registered plugins and execute plugins' methods.

Parameters

Swift_Mime_SimpleMessage $message

Return Value

void

protected int numberOfRecipients(Swift_Mime_SimpleMessage $message)

Get the number of recipients.

Parameters

Swift_Mime_SimpleMessage $message

Return Value

int

void __construct()

Create a new array transport instance.

Return Value

void

send(Swift_Mime_SimpleMessage $message, $failedRecipients = null)

{@inheritdoc}

Parameters

Swift_Mime_SimpleMessage $message
$failedRecipients

Collection messages()

Retrieve the collection of messages.

Return Value

Collection

Collection flush()

Clear all of the messages from the local collection.

Return Value

Collection

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