/** * @override * closes the connection to the log if we are not already closed. */ public function close() { if (!$this->isClosed()) { parent::close(); closelog(); } }
/** * @override * closes the resource handle to stop memory leakage. */ public function close() { if (is_resource($this->handle)) { fclose($this->handle); } $this->handle = null; parent::close(); }
/** * closes the resource handle and calls parent::close to * close the writer. * @see Extension::close() */ public function close() { if (!$this->isClosed()) { if (is_resource($this->handle)) { fclose($this->handle); } parent::close(); } }
/** * @override * attempts to send the email and then closes the writer down. */ public function close() { if (!$this->isClosed()) { //attempt to send the block of stored logs in this execution. $message = \Swift_Message::newInstance(); $message->setTo($this->to)->setFrom($this->from)->setBody($this->body, 'text/html')->setSubject($this->subject); $this->mailer->send($message); parent::close(); } }