src/Guzzle/Plugin/Cookie/CookieJar/FileCookieJar.php
protected function load()
    {
        $json = file_get_contents($this->filename);
        if (false === $json) {
            // @codeCoverageIgnoreStart
            throw new RuntimeException('Unable to open file ' . $this->filename);
            // @codeCoverageIgnoreEnd
        }

        $this->unserialize($json);
        $this->cookies = $this->cookies ?: array();
    }
protected function load()
    {
        $json = file_get_contents($this->filename);
        if (false === $json) {
            // @codeCoverageIgnoreStart
            throw new RuntimeException('Unable to open file ' . $this->filename);
            // @codeCoverageIgnoreEnd
        }

        $this->unserialize($json);
        $this->cookies = $this->cookies ?: array();
    }
protected function load ( ) { $ json = file_get_contents ( $ this -> filename ) ; if ( false === $ json ) { // @codeCoverageIgnoreStart throw new RuntimeException ( 'Unable to open file ' . $ this -> filename ) ; // @codeCoverageIgnoreEnd } $ this -> unserialize ( $ json ) ; $ this -> cookies = $ this -> cookies ? : array ( ) ; }
Load the contents of the json formatted file into the data array and discard any unsaved state
Load the contents of the json formatted file into the data array and discard any unsaved state