src/Provider/AbstractProvider.php
public function authorize(
        array $options = [],
        callable $redirectHandler = null
    ) {
        $url = $this->getAuthorizationUrl($options);
        if ($redirectHandler) {
            return $redirectHandler($url, $this);
        }

        // @codeCoverageIgnoreStart
        header('Location: ' . $url);
        exit;
        // @codeCoverageIgnoreEnd
    }
public function authorize(
        array $options = [],
        callable $redirectHandler = null
    ) {
        $url = $this->getAuthorizationUrl($options);
        if ($redirectHandler) {
            return $redirectHandler($url, $this);
        }

        // @codeCoverageIgnoreStart
        header('Location: ' . $url);
        exit;
        // @codeCoverageIgnoreEnd
    }
public function authorize ( array $ options = [ ] , callable $ redirectHandler = null ) { $ url = $ this -> getAuthorizationUrl ( $ options ) ; if ( $ redirectHandler ) { return $ redirectHandler ( $ url , $ this ) ; } // @codeCoverageIgnoreStart header ( 'Location: ' . $ url ) ; exit ; // @codeCoverageIgnoreEnd }
Redirects the client for authorization.

@param  array $options
@param  callable|null $redirectHandler
@return mixed
Redirects the client for authorization .