logger = $logger; } protected function doWrite(string $message, bool $newline) { $this->logger->info($message); } }