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
Register a plug-in with the transport.
Iterate through registered plugins and execute plugins' methods.
Iterate through registered plugins and execute plugins' methods.
Get the number of recipients.
Create a new array transport instance.
{@inheritdoc}
Retrieve the collection of messages.
Clear all of the messages from the local collection.
Details
bool
isStarted()
{@inheritdoc}
start()
{@inheritdoc}
stop()
{@inheritdoc}
bool
ping()
{@inheritdoc}
void
registerPlugin(Swift_Events_EventListener $plugin)
Register a plug-in with the transport.
protected void
beforeSendPerformed(Swift_Mime_SimpleMessage $message)
Iterate through registered plugins and execute plugins' methods.
protected void
sendPerformed(Swift_Mime_SimpleMessage $message)
Iterate through registered plugins and execute plugins' methods.
protected int
numberOfRecipients(Swift_Mime_SimpleMessage $message)
Get the number of recipients.
void
__construct()
Create a new array transport instance.
int
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.