You are here

public function DiscoveryController::__construct in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x modules/jsonrpc_discovery/src/Controller/DiscoveryController.php \Drupal\jsonrpc_discovery\Controller\DiscoveryController::__construct()

DiscoveryController constructor.

File

modules/jsonrpc_discovery/src/Controller/DiscoveryController.php, line 40

Class

DiscoveryController
The controller that responds with the discovery information.

Namespace

Drupal\jsonrpc_discovery\Controller

Code

public function __construct(HandlerInterface $handler, SerializerInterface $serializer) {
  $this->handler = $handler;
  $this->serializer = $serializer;
}