You are here

public function RpcResponseFactory::__construct in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x src/Shaper/RpcResponseFactory.php \Drupal\jsonrpc\Shaper\RpcResponseFactory::__construct()

RpcResponseFactory constructor.

Parameters

\JsonSchema\Validator $validator: The JSON Schema validator.

File

src/Shaper/RpcResponseFactory.php, line 45

Class

RpcResponseFactory
Creates RPC Response objects.

Namespace

Drupal\jsonrpc\Shaper

Code

public function __construct(Validator $validator) {
  $this->validator = $validator;
}