mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Removed RestfulService->connect(), use RestfulService->request()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@91587 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f19ad85279
commit
37685e6d3f
@ -53,14 +53,6 @@ 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)->getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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…
Reference in New Issue
Block a user