PHP Class Artdarek\OAuth\OAuth

Show file Open project: oriceon/oauth-5-laravel Class Usage Examples

Public Methods

Method Description
__construct ( OAuth\ServiceFactory $serviceFactory = null ) Constructor
consumer ( string $service, string $url = null, array $scope = null ) : OAuth\Common\Service\AbstractService
createStorageInstance ( $storageClass ) : OAuth\Common\\Storage Create storage instance
setConfig ( string $service ) Detect config and set data from it
setHttpClient ( string $httpClientName ) : void Set the http client object

Method Details

__construct() public method

Constructor
public __construct ( OAuth\ServiceFactory $serviceFactory = null )
$serviceFactory OAuth\ServiceFactory - (Dependency injection) If not provided, a ServiceFactory instance will be constructed.

consumer() public method

public consumer ( string $service, string $url = null, array $scope = null ) : OAuth\Common\Service\AbstractService
$service string
$url string
$scope array
return OAuth\Common\Service\AbstractService

createStorageInstance() public method

Create storage instance
public createStorageInstance ( $storageClass ) : OAuth\Common\\Storage
return OAuth\Common\\Storage

setConfig() public method

Detect config and set data from it
public setConfig ( string $service )
$service string

setHttpClient() public method

Set the http client object
public setHttpClient ( string $httpClientName ) : void
$httpClientName string
return void