You are here

public function ServicesClientConnectionRestServer::__construct in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_client_connection/plugins/ServicesClientConnectionRestServer.inc \ServicesClientConnectionRestServer::__construct()

Constructor

Overrides ServicesClientConnectionPlugin::__construct

File

services_client_connection/plugins/ServicesClientConnectionRestServer.inc, line 37

Class

ServicesClientConnectionRestServer
@file

Code

public function __construct($connection, $config, $client = NULL) {
  parent::__construct($connection, $config, $client);

  // Init parser
  $parser = isset($this->config['response_parser']) ? $this->config['response_parser'] : NULL;
  $this->parser = new ServicesClientConnectionRestServerParser($parser);

  // Init formatter
  $formatter = isset($this->config['request_formatter']) ? $this->config['request_formatter'] : NULL;
  $this->formatter = new ServicesClientConnectionRestServerFormatter($formatter);
}