Moosh\MooshCommand::loadSession PHP Method

loadSession() protected method

Loads temporary session information from the temp file.
protected loadSession ( )
    protected function loadSession()
    {
        $tmpFile = $this->defaults['global']['tmpfile'];
        if (!file_exists($tmpFile)) {
            $this->session = array();
        } else {
            $this->session = unserialize(file_get_contents($tmpFile));
        }
        return $this->session;
    }