From 5c5ecca0488f96d907b8a87f2542b3b4ce257496 Mon Sep 17 00:00:00 2001 From: Bastien DURAND Date: Wed, 18 Jun 2014 12:03:32 +0200 Subject: [PATCH] Set getJsonHeaders method to protected By setting the method from private to protected, it allows someone to extends OAuth2.php and override grantAccessToken without having to duplicate this method. --- lib/OAuth2/OAuth2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OAuth2/OAuth2.php b/lib/OAuth2/OAuth2.php index 3a2d084..83aba0a 100644 --- a/lib/OAuth2/OAuth2.php +++ b/lib/OAuth2/OAuth2.php @@ -1452,7 +1452,7 @@ protected function getAuthorizationHeader(Request $request) * * @ingroup oauth2_section_5 */ - private function getJsonHeaders() + protected function getJsonHeaders() { return array( 'Content-Type' => 'application/json',