Symfony2 API
Class

Symfony\Bridge\Swiftmailer\DataCollector\MessageDataCollector

class MessageDataCollector extends DataCollector

MessageDataCollector.

Methods

__construct(ContainerInterface $container, Boolean $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

at line 39
public __construct(ContainerInterface $container, Boolean $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
Boolean $isSpool

at line 48
public 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 63
public getMessageCount()

at line 68
public getMessages()

at line 73
public isSpool()

at line 81
public string getName()

Returns the name of the collector.

Return Value

string The collector name