You are here

public function HttpController::__construct in JSON-RPC 8

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

HttpController constructor.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.

File

src/Controller/HttpController.php, line 52

Class

HttpController
The main front controller.

Namespace

Drupal\jsonrpc\Controller

Code

public function __construct(ContainerInterface $container) {
  $this->handler = $container
    ->get('jsonrpc.handler');
  $this->validator = $container
    ->get('jsonrpc.schema_validator');
  $this->container = $container;
}