You are here

function RESTServer::__construct in Services 7.3

Constructor. Initialize properties.

File

servers/rest_server/includes/RESTServer.inc, line 23
Class for handling REST calls.

Class

RESTServer
@file Class for handling REST calls.

Code

function __construct(ServicesContextInterface $context, ServicesContentTypeNegotiatorInterface $negotiator, $resources, $parsers, $formatters) {
  $this->context = $context;
  $this->negotiator = $negotiator;
  $this->resources = $resources;
  $this->parsers = $parsers;
  $this->formatters = $formatters;
}