PHP Class Overtrue\Socialite\Providers\WeChatProvider

Inheritance: extends AbstractProvider, implements Overtrue\Socialite\ProviderInterface
Afficher le fichier Open project: overtrue/socialite Class Usage Examples

Protected Properties

Свойство Type Description
$baseUrl string The base url of WeChat API.
$openId {@inheritdoc}.
$scopes {@inheritdoc}.
$stateless boolean Indicates if the session state should be utilized.

Méthodes publiques

Méthode Description
getAccessToken ( $code ) {@inheritdoc}.

Méthodes protégées

Méthode Description
buildAuthUrlFromBase ( $url, $state ) {@inheritdoc}.
getAuthUrl ( $state ) {@inheritdoc}.
getCodeFields ( $state = null ) {@inheritdoc}.
getTokenFields ( $code ) {@inheritdoc}.
getTokenUrl ( ) {@inheritdoc}.
getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) {@inheritdoc}.
isOpenPlatform ( ) : mixed Detect wechat open platform.
mapUserToObject ( array $user ) {@inheritdoc}.
removeCallback ( mixed $response ) : string Remove the fucking callback parentheses.

Method Details

buildAuthUrlFromBase() protected méthode

{@inheritdoc}.
protected buildAuthUrlFromBase ( $url, $state )

getAccessToken() public méthode

{@inheritdoc}.
public getAccessToken ( $code )

getAuthUrl() protected méthode

{@inheritdoc}.
protected getAuthUrl ( $state )

getCodeFields() protected méthode

{@inheritdoc}.
protected getCodeFields ( $state = null )

getTokenFields() protected méthode

{@inheritdoc}.
protected getTokenFields ( $code )

getTokenUrl() protected méthode

{@inheritdoc}.
protected getTokenUrl ( )

getUserByToken() protected méthode

{@inheritdoc}.
protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token )
$token Overtrue\Socialite\AccessTokenInterface

isOpenPlatform() protected méthode

Detect wechat open platform.
protected isOpenPlatform ( ) : mixed
Résultat mixed

mapUserToObject() protected méthode

{@inheritdoc}.
protected mapUserToObject ( array $user )
$user array

removeCallback() protected méthode

Remove the fucking callback parentheses.
protected removeCallback ( mixed $response ) : string
$response mixed
Résultat string

Property Details

$baseUrl protected_oe property

The base url of WeChat API.
protected string $baseUrl
Résultat string

$openId protected_oe property

{@inheritdoc}.
protected $openId

$scopes protected_oe property

{@inheritdoc}.
protected $scopes

$stateless protected_oe property

Indicates if the session state should be utilized.
protected bool $stateless
Résultat boolean