class MessageDataCollector extends DataCollector

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

Properties

protected $data from DataCollector

Methods

serialize()

No description

unserialize($data)

No description

string
varToString(mixed $var)

Converts a PHP variable to a string.

__construct(ContainerInterface $container, bool $isSpool)

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()

No description

getMessages()

No description

isSpool()

No description

string
getName()

Returns the name of the collector.

Details

in DataCollector at line 33
serialize()

in DataCollector at line 38
unserialize($data)

Parameters

$data

in DataCollector at line 50
protected string varToString(mixed $var)

Converts a PHP variable to a string.

Parameters

mixed $var A PHP variable

Return Value

string The string representation of the variable

at line 40
__construct(ContainerInterface $container, bool $isSpool)

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 49
collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request
Response $response
Exception $exception

at line 64
getMessageCount()

at line 69
getMessages()

at line 74
isSpool()

at line 82
string getName()

Returns the name of the collector.

Return Value

string The collector name