fkooman\OAuth\Client\Api::__construct PHP Method

__construct() public method

public __construct ( $clientConfigId, fkooman\OAuth\Client\ClientConfigInterface $clientConfig, fkooman\OAuth\Client\StorageInterface $tokenStorage, fkooman\OAuth\Client\HttpClientInterface $httpClient )
$clientConfig fkooman\OAuth\Client\ClientConfigInterface
$tokenStorage fkooman\OAuth\Client\StorageInterface
$httpClient fkooman\OAuth\Client\HttpClientInterface
    public function __construct($clientConfigId, ClientConfigInterface $clientConfig, StorageInterface $tokenStorage, HttpClientInterface $httpClient)
    {
        $this->setClientConfigId($clientConfigId);
        $this->setClientConfig($clientConfig);
        $this->setTokenStorage($tokenStorage);
        $this->setHttpClient($httpClient);
    }

Usage Example

 public function __construct($clientConfigId, ClientConfigInterface $clientConfig, StorageInterface $tokenStorage, \Guzzle\Http\Client $httpClient)
 {
     parent::__construct($clientConfigId, $clientConfig, $tokenStorage, $httpClient);
     $this->clientConfig = $clientConfig;
     $this->httpClient = $httpClient;
     $this->tokenStorage = $tokenStorage;
     $this->clientConfigId = $clientConfigId;
 }