PHP 클래스 yii\authclient\Collection

Example application configuration: php 'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'google' => [ 'class' => 'yii\authclient\clients\Google', 'clientId' => 'google_client_id', 'clientSecret' => 'google_client_secret', ], 'facebook' => [ 'class' => 'yii\authclient\clients\Facebook', 'clientId' => 'facebook_client_id', 'clientSecret' => 'facebook_client_secret', ], ], ] ... ]
부터: 2.0
저자: Paul Klimov ([email protected])
상속: extends yii\base\Component
파일 보기 프로젝트 열기: yiisoft/yii2-authclient 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$httpClient HTTP client instance or configuration for the [[clients]]. If set, this value will be passed as 'httpClient' config option while instantiating particular client object. This option is useful for adjusting HTTP client configuration for the entire list of auth clients.

공개 메소드들

메소드 설명
getClient ( string $id ) : yii\authclient\ClientInterface
getClients ( ) : yii\authclient\ClientInterface[]
hasClient ( string $id ) : boolean Checks if client exists in the hub.
setClients ( array $clients )

보호된 메소드들

메소드 설명
createClient ( string $id, array $config ) : yii\authclient\ClientInterface Creates auth client instance from its array configuration.

메소드 상세

createClient() 보호된 메소드

Creates auth client instance from its array configuration.
protected createClient ( string $id, array $config ) : yii\authclient\ClientInterface
$id string auth client id.
$config array auth client instance configuration.
리턴 yii\authclient\ClientInterface auth client instance.

getClient() 공개 메소드

public getClient ( string $id ) : yii\authclient\ClientInterface
$id string service id.
리턴 yii\authclient\ClientInterface auth client instance.

getClients() 공개 메소드

public getClients ( ) : yii\authclient\ClientInterface[]
리턴 yii\authclient\ClientInterface[] list of auth clients.

hasClient() 공개 메소드

Checks if client exists in the hub.
public hasClient ( string $id ) : boolean
$id string client id.
리턴 boolean whether client exist.

setClients() 공개 메소드

public setClients ( array $clients )
$clients array list of auth clients

프로퍼티 상세

$httpClient 공개적으로 프로퍼티

HTTP client instance or configuration for the [[clients]]. If set, this value will be passed as 'httpClient' config option while instantiating particular client object. This option is useful for adjusting HTTP client configuration for the entire list of auth clients.
public $httpClient