src/Session/Storage/File.php
protected function getHomeDirectory()
    {
        $home = getenv('HOME');
        if (!$home && ($userProfile = getenv('USERPROFILE'))) {
            $home = $userProfile;
        }
        if (!$home || !is_dir($home)) {
            throw new \RuntimeException('Could not determine home directory');
        }

        return $home;
    }
protected function getHomeDirectory()
    {
        $home = getenv('HOME');
        if (!$home && ($userProfile = getenv('USERPROFILE'))) {
            $home = $userProfile;
        }
        if (!$home || !is_dir($home)) {
            throw new \RuntimeException('Could not determine home directory');
        }

        return $home;
    }
protected function getHomeDirectory ( ) { $ home = getenv ( 'HOME' ) ; if ( ! $ home && ( $ userProfile = getenv ( 'USERPROFILE' ) ) ) { $ home = $ userProfile ; } if ( ! $ home || ! is_dir ( $ home ) ) { throw new \ RuntimeException ( 'Could not determine home directory' ) ; } return $ home ; }
Finds the user's home directory.

@return string
Finds the user s home directory .