From a5ad2c7f2dea58fdc992149252e6714f7a80701c Mon Sep 17 00:00:00 2001 From: darthmaim Date: Sat, 23 May 2015 15:46:45 +0200 Subject: [PATCH] change IAuthenticatedEndpoint::apiKey() to IAuthenticatedEndpoint::getApiKey() --- src/V2/Authentication/AuthenticatedEndpoint.php | 2 +- src/V2/Authentication/AuthenticationHandler.php | 2 +- src/V2/Authentication/IAuthenticatedEndpoint.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/V2/Authentication/AuthenticatedEndpoint.php b/src/V2/Authentication/AuthenticatedEndpoint.php index 1ffdbd4..7c19e42 100644 --- a/src/V2/Authentication/AuthenticatedEndpoint.php +++ b/src/V2/Authentication/AuthenticatedEndpoint.php @@ -5,7 +5,7 @@ trait AuthenticatedEndpoint { protected $apiKey; - public function apiKey() { + public function getApiKey() { return $this->apiKey; } } diff --git a/src/V2/Authentication/AuthenticationHandler.php b/src/V2/Authentication/AuthenticationHandler.php index 0dd071b..b3f8fdc 100644 --- a/src/V2/Authentication/AuthenticationHandler.php +++ b/src/V2/Authentication/AuthenticationHandler.php @@ -25,7 +25,7 @@ protected function getEndpoint() { * @param RequestInterface $request */ public function onRequest( RequestInterface $request ) { - $request->addHeader( 'Authorization', 'Bearer ' . $this->getEndpoint()->apiKey() ); + $request->addHeader( 'Authorization', 'Bearer ' . $this->getEndpoint()->getApiKey() ); } /** diff --git a/src/V2/Authentication/IAuthenticatedEndpoint.php b/src/V2/Authentication/IAuthenticatedEndpoint.php index 45f6361..df7362a 100644 --- a/src/V2/Authentication/IAuthenticatedEndpoint.php +++ b/src/V2/Authentication/IAuthenticatedEndpoint.php @@ -5,5 +5,5 @@ use GW2Treasures\GW2Api\V2\IEndpoint; interface IAuthenticatedEndpoint extends IEndpoint { - public function apiKey(); + public function getApiKey(); }