You are here

public function ChunkedXMLFIReader::__destruct in Feed Import 8

Destructor.

Overrides FeedImportReader::__destruct

File

feed_import_base/src/ChunkedXMLFIReader.php, line 182

Class

ChunkedXMLFIReader
CunkedXML Reader class, used for huge XML files.

Namespace

Drupal\feed_import_base

Code

public function __destruct() {

  // Close file handle if any.
  if ($this->fh) {
    try {
      fclose($this->fh);
    } catch (Exception $e) {
    }
  }
}