Skip to content

Commit

Permalink
Merge pull request #5 from islamw/master
Browse files Browse the repository at this point in the history
fix multiple requests
  • Loading branch information
alexpechkarev committed Jan 28, 2016
2 parents 7e0f81d + 1748d3a commit daf77ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ protected static function joinParam( $param = [], $join = '=', $glue = '&', $use
/***/



public static function resetParams()
{
self::$urlParam = [];
}
}

?>
11 changes: 10 additions & 1 deletion src/WebService.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ protected function build( $service ){
// is ssl_verify_peer key set, use it, otherwise use default key
$this->verifySSL = empty(config('googlemaps.ssl_verify_peer'))
? FALSE
:config('googlemaps.ssl_verify_peer');
:config('googlemaps.ssl_verify_peer');

$this->clearParameters();
}
/***/

Expand Down Expand Up @@ -381,6 +383,13 @@ protected function make( $isPost = false ){
return $output;

}

protected function clearParameters()
{
Parameters::resetParams();
}


/***/

}

0 comments on commit daf77ce

Please sign in to comment.