Skip to content

Commit

Permalink
makes possible to inherit Ouath2\Request and use it instead
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Mar 31, 2015
1 parent e7c42e1 commit 7968a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth2/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '');
Expand Down

0 comments on commit 7968a50

Please sign in to comment.