public function RpcResponseFactory::__construct in JSON-RPC 8
Same name and namespace in other branches
- 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\ShaperCode
public function __construct(Validator $validator) {
$this->validator = $validator;
}