1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 17:46:09 +02:00

Moved the use of the default formatter to the getter to keep the code DRY

This commit is contained in:
Christophe Coevoet
2011-05-08 16:34:56 +02:00
parent c33eb7b032
commit 6aebccf34c
2 changed files with 6 additions and 8 deletions

View File

@@ -33,10 +33,7 @@ abstract class MailHandler extends AbstractHandler
}
if (!empty($messages)) {
if (!$this->formatter) {
$this->formatter = $this->getDefaultFormatter();
}
$this->send($this->formatter->formatBatch($messages));
$this->send($this->getFormatter()->formatBatch($messages));
}
}