class ArrayTransport extends Transport

Properties

array $plugins

The plug-ins registered with the transport.

from  Transport
protected Collection $messages

The collection of Swift Messages.

Methods

isStarted()

{@inheritdoc}

start()

{@inheritdoc}

stop()

{@inheritdoc}

void
registerPlugin(Swift_Events_EventListener $plugin)

Register a plug-in with the transport.

void
beforeSendPerformed(Swift_Mime_Message $message)

Iterate through registered plugins and execute plugins' methods.

void
sendPerformed(Swift_Mime_Message $message)

Iterate through registered plugins and execute plugins' methods.

int
numberOfRecipients(Swift_Mime_Message $message)

Get the number of recipients.

void
__construct()

Create a new array transport instance.

send(Swift_Mime_Message $message, $failedRecipients = null)

{@inheritdoc}

messages()

Retrieve the collection of messages.

flush()

Clear all of the messages from the local collection.

Details

in Transport at line 22
isStarted()

{@inheritdoc}

in Transport at line 30
start()

{@inheritdoc}

in Transport at line 38
stop()

{@inheritdoc}

in Transport at line 49
void registerPlugin(Swift_Events_EventListener $plugin)

Register a plug-in with the transport.

Parameters

Swift_Events_EventListener $plugin

Return Value

void

in Transport at line 60
protected void beforeSendPerformed(Swift_Mime_Message $message)

Iterate through registered plugins and execute plugins' methods.

Parameters

Swift_Mime_Message $message

Return Value

void

in Transport at line 77
protected void sendPerformed(Swift_Mime_Message $message)

Iterate through registered plugins and execute plugins' methods.

Parameters

Swift_Mime_Message $message

Return Value

void

in Transport at line 94
protected int numberOfRecipients(Swift_Mime_Message $message)

Get the number of recipients.

Parameters

Swift_Mime_Message $message

Return Value

int

at line 22
void __construct()

Create a new array transport instance.

Return Value

void

at line 30
send(Swift_Mime_Message $message, $failedRecipients = null)

{@inheritdoc}

Parameters

Swift_Mime_Message $message
$failedRecipients

at line 44
Collection messages()

Retrieve the collection of messages.

Return Value

Collection

at line 54
Collection flush()

Clear all of the messages from the local collection.

Return Value

Collection