Skip to content

Commit

Permalink
Merge pull request #554 from hiqdev/inheritable_request
Browse files Browse the repository at this point in the history
Makes possible to inherit from Oauth2\Request and use own Request class instead of original
  • Loading branch information
bshaffer committed Mar 31, 2015
2 parents e7c42e1 + 7968a50 commit dfa7c36
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 dfa7c36

Please sign in to comment.