LogTransport
extends Transport
in package
Table of Contents
Properties
- $plugins : array<string|int, mixed>
- The plug-ins registered with the transport.
- $logger : LoggerInterface
- The Logger instance.
Methods
- __construct() : void
- Create a new log transport instance.
- isStarted() : mixed
- {@inheritdoc}
- ping() : mixed
- {@inheritdoc}
- registerPlugin() : void
- Register a plug-in with the transport.
- send() : mixed
- {@inheritdoc}
- start() : mixed
- {@inheritdoc}
- stop() : mixed
- {@inheritdoc}
- beforeSendPerformed() : void
- Iterate through registered plugins and execute plugins' methods.
- getMimeEntityString() : string
- Get a loggable string out of a Swiftmailer entity.
- numberOfRecipients() : int
- Get the number of recipients.
- sendPerformed() : void
- Iterate through registered plugins and execute plugins' methods.
Properties
$plugins
The plug-ins registered with the transport.
public
array<string|int, mixed>
$plugins
= []
$logger
The Logger instance.
protected
LoggerInterface
$logger
Methods
__construct()
Create a new log transport instance.
public
__construct(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface
isStarted()
{@inheritdoc}
public
isStarted() : mixed
ping()
{@inheritdoc}
public
ping() : mixed
registerPlugin()
Register a plug-in with the transport.
public
registerPlugin(Swift_Events_EventListener $plugin) : void
Parameters
- $plugin : Swift_Events_EventListener
send()
{@inheritdoc}
public
send(Swift_Mime_Message $message[, mixed &$failedRecipients = null ]) : mixed
Parameters
- $message : Swift_Mime_Message
- $failedRecipients : mixed = null
start()
{@inheritdoc}
public
start() : mixed
stop()
{@inheritdoc}
public
stop() : mixed
beforeSendPerformed()
Iterate through registered plugins and execute plugins' methods.
protected
beforeSendPerformed(Swift_Mime_Message $message) : void
Parameters
- $message : Swift_Mime_Message
getMimeEntityString()
Get a loggable string out of a Swiftmailer entity.
protected
getMimeEntityString(Swift_Mime_MimeEntity $entity) : string
Parameters
- $entity : Swift_Mime_MimeEntity
Return values
stringnumberOfRecipients()
Get the number of recipients.
protected
numberOfRecipients(Swift_Mime_Message $message) : int
Parameters
- $message : Swift_Mime_Message
Return values
intsendPerformed()
Iterate through registered plugins and execute plugins' methods.
protected
sendPerformed(Swift_Mime_Message $message) : void
Parameters
- $message : Swift_Mime_Message