class MessageDataCollector extends DataCollector
deprecated
since version 2.4, to be removed in 3.0. Use the MessageDataCollector from SwiftmailerBundle instead.
MessageDataCollector.
Methods
serialize() | from DataCollector | |
unserialize($data) | from DataCollector | |
__construct(ContainerInterface $container, bool $isSpool) Constructor. | ||
collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. | ||
getMessageCount() | ||
getMessages() | ||
isSpool() | ||
string | getName() Returns the name of the collector. |
Details
serialize()
unserialize($data)
__construct(ContainerInterface $container, bool $isSpool)
Constructor.
We don't inject the message logger and mailer here to avoid the creation of these objects when no emails are sent.
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response.
getMessageCount()
getMessages()
isSpool()
string getName()
Returns the name of the collector.
Please login to continue.