Esempio n. 1
0
 public function detach()
 {
     $this->detached = true;
     $this->fields = $this->files = [];
     if ($this->body) {
         $this->body->close();
         $this->body = null;
     }
 }
Esempio n. 2
0
 public function close()
 {
     return $this->body ? $this->body->close() : true;
 }
Esempio n. 3
0
 public function close()
 {
     $this->stream->close();
     $this->detach();
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 protected function doClose()
 {
     $this->stream->close();
     return true;
 }