src/Yandex/OAuth/OAuthClient.php
public function authRedirect($exit = true, $type = self::CODE_AUTH_TYPE, $state = null)
    {
        header('Location: ' . $this->getAuthUrl($type, $state));

        return $exit ? exit() : true;
    }
public function authRedirect($exit = true, $type = self::CODE_AUTH_TYPE, $state = null)
    {
        header('Location: ' . $this->getAuthUrl($type, $state));

        return $exit ? exit() : true;
    }
public function authRedirect ( $ exit = true , $ type = self :: CODE_AUTH_TYPE , $ state = null ) { header ( 'Location: ' . $ this -> getAuthUrl ( $ type , $ state ) ) ; return $ exit ? exit ( ) : true ; }
Sends a redirect to the Yandex authentication page.

@param bool   $exit  indicates whether to stop the PHP script immediately or not
@param string $type  a type of the authentication procedure
@param string $state optional string
@return bool|void
Sends a redirect to the Yandex authentication page .