You are here

public function FileCookieJar::__destruct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php \GuzzleHttp\Cookie\FileCookieJar::__destruct()

Saves the file when shutting down

File

vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php, line 37

Class

FileCookieJar
Persists non-session cookies using a JSON formatted file

Namespace

GuzzleHttp\Cookie

Code

public function __destruct() {
  $this
    ->save($this->filename);
}