src/Login/Login.php
public function getCookie($forceRefresh = false, $method = 'noCode')
    {
        $cacheKey = $this->getCacheKey();
        $cookie = $this->getCache()->fetch($cacheKey);

        if ($forceRefresh || empty($cookie)) {
            if (is_array($method)) {
                $cookie = call_user_func_array([$this, $method['method']], $method['param']);
            } else {
                $cookie = call_user_func([$this, $method]);
            }

            $this->setCookie($cookie);
        }

        return $cookie;
    }
public function getCookie($forceRefresh = false, $method = 'noCode')
    {
        $cacheKey = $this->getCacheKey();
        $cookie = $this->getCache()->fetch($cacheKey);

        if ($forceRefresh || empty($cookie)) {
            if (is_array($method)) {
                $cookie = call_user_func_array([$this, $method['method']], $method['param']);
            } else {
                $cookie = call_user_func([$this, $method]);
            }

            $this->setCookie($cookie);
        }

        return $cookie;
    }
public function getCookie ( $ forceRefresh = false , $ method = 'noCode' ) { $ cacheKey = $ this -> getCacheKey ( ) ; $ cookie = $ this -> getCache ( ) -> fetch ( $ cacheKey ) ; if ( $ forceRefresh || empty ( $ cookie ) ) { if ( is_array ( $ method ) ) { $ cookie = call_user_func_array ( [ $ this , $ method [ 'method' ] ] , $ method [ 'param' ] ) ; } else { $ cookie = call_user_func ( [ $ this , $ method ] ) ; } $ this -> setCookie ( $ cookie ) ; } return $ cookie ; }
Get the cookies for login.

@param bool         $forceRefresh
@param string|array $method

@return mixed
Get the cookies for login .