mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX #3087 simon_w: Added ResfulService::connect() back, for backward compatability
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66052 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c5773e2f36
commit
abd6f11d44
@ -54,6 +54,14 @@ class RestfulService extends ViewableData {
|
||||
return "$this->baseURL" . ($this->queryString ? "?$this->queryString" : "");
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use RestfulService::request()
|
||||
*/
|
||||
public function connect($subURL = '') {
|
||||
user_error("RestfulService::connect is deprecated; use RestfulService::request", E_USER_NOTICE);
|
||||
return $this->request($subURL, 'GET');
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes a request to the RESTful server, and return a {@link RestfulService_Response} object for parsing of the result.
|
||||
* @todo Better POST, PUT, DELETE, and HEAD support
|
||||
|
Loading…
x
Reference in New Issue
Block a user