public function DiscoveryController::__construct in JSON-RPC 2.x
Same name and namespace in other branches
- 8 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\ControllerCode
public function __construct(HandlerInterface $handler, SerializerInterface $serializer) {
$this->handler = $handler;
$this->serializer = $serializer;
}