(REF) CRM_Utils_Mail - Split LoggingMailer into FilteredPearMailer and Logger
authorTim Otten <totten@civicrm.org>
Tue, 11 Feb 2020 01:48:50 +0000 (17:48 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 11 Feb 2020 04:32:07 +0000 (20:32 -0800)
commitdee6e58227627540766b1ea80abba046987e7776
tree600f81132523d37c669d94c000e4cf73a7972b50
parent7af71f56e74876be3198dc82c220a3f864284773
(REF) CRM_Utils_Mail - Split LoggingMailer into FilteredPearMailer and Logger

1. Captures more context (i.e. the original driver and params)
2. Changes various property names to avoid potential for conflict with delegated properties
3. Adds `addFilter($id, $func)` so that one can move more filters in here
4. Consolidates the various references ot CIVICRM_MAIL_LOG* into one file.
CRM/Utils/Mail.php
CRM/Utils/Mail/FilteredPearMailer.php [new file with mode: 0644]
CRM/Utils/Mail/Logger.php [new file with mode: 0644]
CRM/Utils/Mail/LoggingMailer.php [deleted file]
tests/phpunit/CRM/Utils/Mail/FilteredPearMailerTest.php [new file with mode: 0644]