MessageDataCollector deprecated
class MessageDataCollector extends DataCollector
deprecated
MessageDataCollector.
Методы
| serialize() | from DataCollector | |
| unserialize($data) | from DataCollector | |
| __construct(ContainerInterface $container, bool $isSpool) Конструктор. | ||
| collect(Request $request, Response $response, Exception $exception = null) Собирает данные для заданного запроса и ответа. | ||
| getMessageCount() | ||
| getMessages() | ||
| isSpool() | ||
| string | getName() Возвращает имя коллектора. |
Детали
serialize()
unserialize($data)
Параметры
| $data |
__construct(ContainerInterface $container, bool $isSpool)
Конструктор.
Мы не инжектируем здесь логировщик сообщений и почтовый клиент, чтобы избежать создания этих объектов, когда письма не отправляются.
Параметры
| ContainerInterface | $container | Экземпляр ContainerInterface |
| bool | $isSpool |
collect(Request $request, Response $response, Exception $exception = null)
Собирает данные для заданного запроса и ответа.
Параметры
| Request | $request | Экземпляр Request |
| Response | $response | Экземпляр Response |
| Exception | $exception | Экземпляр Exception |
getMessageCount()
getMessages()
isSpool()
string getName()
Возвращает имя коллектора.
Значение результата
| string | Имя коллектора |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Bridge/Swiftmailer/DataCollector/MessageDataCollector.html