initial = $initial; $this->chillLogger = $chillLogger; } public function send(RawMessage $message, ?Envelope $envelope = null): void { if ($message instanceof Email) { $message->subject($this->prefix . $message->getSubject()); } $this->chillLogger->info('chill email sent', [ 'to' => array_map(static function (Address $address) { return $address->getAddress(); }, $message->getTo()), 'subject' => $message->getSubject(), ]); $this->initial->send($message, $envelope); } }