PHP Класс Overtrue\LaravelWechat\Middleware\OAuthAuthenticate

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Application $wechat ) Inject the wechat service.
handle ( Illuminate\Http\Request $request, Closure $next, string | null $scopes = null ) : mixed Handle an incoming request.

Защищенные методы

Метод Описание
getTargetUrl ( Request $request ) : string Build the target business url.
isWeChatBrowser ( ) : boolean Detect current user agent type.
needReauth ( array $scopes ) : boolean Is different scopes.

Описание методов

__construct() публичный Метод

Inject the wechat service.
public __construct ( Application $wechat )
$wechat EasyWeChat\Foundation\Application

getTargetUrl() защищенный Метод

Build the target business url.
protected getTargetUrl ( Request $request ) : string
$request Request
Результат string

handle() публичный Метод

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next, string | null $scopes = null ) : mixed
$request Illuminate\Http\Request
$next Closure
$scopes string | null
Результат mixed

isWeChatBrowser() защищенный Метод

Detect current user agent type.
protected isWeChatBrowser ( ) : boolean
Результат boolean

needReauth() защищенный Метод

Is different scopes.
protected needReauth ( array $scopes ) : boolean
$scopes array
Результат boolean