You are here

public function ServicesRESTServerFactory::__construct in Services 7.3

We need data property to pass additional arguments to methods.

Required property is 'endpoint_path' -- base path of endpoint. Example: GET rest/node/1.php -- "rest" is endpoint path.

1 call to ServicesRESTServerFactory::__construct()
MockServicesRESTServerFactory::__construct in servers/rest_server/tests/rest_server_mock_classes.inc
We need data property to pass additional arguments to methods.
1 method overrides ServicesRESTServerFactory::__construct()
MockServicesRESTServerFactory::__construct in servers/rest_server/tests/rest_server_mock_classes.inc
We need data property to pass additional arguments to methods.

File

servers/rest_server/includes/ServicesRESTServerFactory.inc, line 19

Class

ServicesRESTServerFactory
Factory class to build RESTServer object.

Code

public function __construct($data = array()) {
  if (!isset($data['endpoint_path'])) {
    throw new Exception('ServicesRESTServerFactory constructor requires "endpoint_data" property.');
  }
  $this->data = $data;
}