From d03d815ddab69cb41a4bc2565c6c1ccf68e269cb Mon Sep 17 00:00:00 2001 From: Tobias Hauck Date: Wed, 22 Jul 2015 11:15:14 +0200 Subject: [PATCH] opened API for deprecated HTTP method calls --- Services/RestClient.php | 3 ++- Traits/Assertions.php | 2 +- composer.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Services/RestClient.php b/Services/RestClient.php index 077c25a..07144e0 100644 --- a/Services/RestClient.php +++ b/Services/RestClient.php @@ -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 diff --git a/Traits/Assertions.php b/Traits/Assertions.php index a1ab737..dc741df 100644 --- a/Traits/Assertions.php +++ b/Traits/Assertions.php @@ -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; diff --git a/composer.json b/composer.json index 90d7ee6..234c896 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "target-dir" : "Ci/RestClientBundle", "extra" : { "branch-alias" : { - "dev-master" : "0.2-dev" + "dev-master" : "0.3-dev" } } }