From 7968a508c486e00bd7ec2510574eaff139e9b18b Mon Sep 17 00:00:00 2001 From: sol Date: Tue, 31 Mar 2015 15:02:25 +0000 Subject: [PATCH] makes possible to inherit Ouath2\Request and use it instead --- src/OAuth2/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth2/Request.php b/src/OAuth2/Request.php index faec0ceb3..c92cee821 100644 --- a/src/OAuth2/Request.php +++ b/src/OAuth2/Request.php @@ -191,7 +191,7 @@ private function getHeadersFromServer($server) */ public static function createFromGlobals() { - $class = __CLASS__; + $class = get_called_class(); $request = new $class($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER); $contentType = $request->server('CONTENT_TYPE', '');