Skip to content

Commit 348f3f3

Browse files
committed
Mark two broken methods as (currently) not supported
1 parent f1fe730 commit 348f3f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Classes/OAuthClient.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ public function removeAuthorization(string $authorizationId): void
441441
*/
442442
public function getAuthenticatedRequest(Authorization $authorization, string $relativeUri, string $method = 'GET', array $bodyFields = []): RequestInterface
443443
{
444+
throw new OAuthClientException('getAuthenticatedRequest is currently not implemented', 1631826501);
445+
444446
$accessToken = $authorization->getAccessToken();
445447
if ($accessToken === null) {
446448
throw new OAuthClientException(sprintf($this->getServiceType() . 'Failed getting an authenticated request for client ID "%s" because the authorization contained no access token', $authorization->getClientId()), 1589300319);
@@ -473,6 +475,8 @@ public function getAuthenticatedRequest(Authorization $authorization, string $re
473475
*/
474476
public function sendAuthenticatedRequest(Authorization $authorization, string $relativeUri, string $method = 'GET', array $bodyFields = []): Response
475477
{
478+
throw new OAuthClientException('sendAuthenticatedRequest is currently not implemented', 1631826483);
479+
476480
if ($this->httpClient === null) {
477481
$this->httpClient = new Client(['allow_redirects' => false]);
478482
}

0 commit comments

Comments
 (0)