/** * @param \OAuth\Common\Consumer\Credentials $credentials * @param \OAuth\Common\Http\Client\ClientInterface $httpClient * @param \OAuth\Common\Storage\TokenStorageInterface $storage * @param \OAuth\OAuth1\Signature\SignatureInterface $signature * @param UriInterface|null $baseApiUri */ public function __construct(Credentials $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, SignatureInterface $signature, UriInterface $baseApiUri = null) { parent::__construct($credentials, $httpClient, $storage); $this->signature = $signature; $this->baseApiUri = $baseApiUri; $this->signature->setHashingAlgorithm($this->getSignatureMethod()); }
/** * {@inheritDoc} */ public function __construct(CredentialsInterface $credentials, Browser $httpTransporter, TokenStorageInterface $storage, SignatureInterface $signature, $baseApiUri = null) { parent::__construct($credentials, $httpTransporter, $storage, $baseApiUri); $this->signature = $signature; $this->signature->setHashingAlgorithm($this->getSignatureMethod()); }