MessageDataCollector deprecated
class MessageDataCollector extends DataCollector
deprecated
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)
Parameters
$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.
Parameters
ContainerInterface | $container | A ContainerInterface instance |
bool | $isSpool |
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 |
getMessageCount()
getMessages()
isSpool()
string getName()
Returns the name of the collector.
Return Value
string | The collector name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bridge/Swiftmailer/DataCollector/MessageDataCollector.html