PHP 클래스 Webiny\Component\TwitterOAuth\Bridge\TwitterOAuth

상속: use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
getInstance ( string $clientId, string $clientSecret, string $redirectUri ) : Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface Create an instance of an TwitterOAuth driver.
setLibrary ( string $pathToClass ) Change the default library used for the driver.

비공개 메소드들

메소드 설명
getLibrary ( ) : string Get the name of bridge library which will be used as the driver.

메소드 상세

getInstance() 공개 정적인 메소드

Create an instance of an TwitterOAuth driver.
public static getInstance ( string $clientId, string $clientSecret, string $redirectUri ) : Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface
$clientId string Client id.
$clientSecret string Client secret.
$redirectUri string Target url where to redirect after authentication.
리턴 Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface

setLibrary() 공개 정적인 메소드

Change the default library used for the driver.
public static setLibrary ( string $pathToClass )
$pathToClass string Path to the new bridge class. The class must implement \Webiny\Component\TwitterOAuth\Bridge\TwitterOAuthInterface.