logger = $logger; } /** * {@inheritdoc} */ public function send(RawMessage $message, Envelope $envelope = null): ?SentMessage { $string = $message->toString(); if (str_contains($string, 'Content-Transfer-Encoding: quoted-printable')) { $string = quoted_printable_decode($string); } $this->logger->debug($string); return new SentMessage($message, $envelope ?? Envelope::create($message)); } /** * Get the logger for the LogTransport instance. * * @return \Psr\Log\LoggerInterface */ public function logger() { return $this->logger; } /** * Get the string representation of the transport. * * @return string */ public function __toString(): string { return 'log'; } }