class MessageDataCollector extends DataCollector

deprecated since version 2.4, to be removed in 3.0. Use the MessageDataCollector from SwiftmailerBundle instead.

MessageDataCollector.

Methods

serialize()

No description

unserialize($data)

No description

__construct(ContainerInterface $container, bool $isSpool)

Constructor.

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

getMessageCount()

No description

getMessages()

No description

isSpool()

No description

string
getName()

Returns the name of the collector.

Details

in DataCollector at line line 33
serialize()

in DataCollector at line line 38
unserialize($data)

Parameters

$data

at line line 44
__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.

Parameters

ContainerInterface $container A ContainerInterface instance
bool $isSpool

at line line 53
collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request A Request instance
Response $response A Response instance
Exception $exception An Exception instance

at line line 68
getMessageCount()

at line line 73
getMessages()

at line line 78
isSpool()

at line line 86
string getName()

Returns the name of the collector.

Return Value

string The collector name