Skip to content

Commit

Permalink
opened API for deprecated HTTP method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Hauck committed Jul 22, 2015
1 parent f945674 commit d03d815
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Services/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@
* @copyright 2015 TeeAge-Beatz UG
*/
class RestClient implements RestInterface {

/**
* This variable stores the curl instance created through curl initiation
*
* @var Curl
*/
private $curl;
protected $curl;

/**
* Constructor
Expand Down
2 changes: 1 addition & 1 deletion Traits/Assertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private function assertString($value) {
private function assertHttpMethod($method) {
if (!$this->assertString($method)) return false;
$validHttpMethods = array(
'GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT', 'PATCH'
'GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT', 'PATCH', 'LINK', 'UNLINK'
);
if (!in_array($method, $validHttpMethods)) return false;
return true;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"target-dir" : "Ci/RestClientBundle",
"extra" : {
"branch-alias" : {
"dev-master" : "0.2-dev"
"dev-master" : "0.3-dev"
}
}
}

0 comments on commit d03d815

Please sign in to comment.