public function HttpController::__construct in JSON-RPC 8
Same name and namespace in other branches
- 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\ControllerCode
public function __construct(ContainerInterface $container) {
$this->handler = $container
->get('jsonrpc.handler');
$this->validator = $container
->get('jsonrpc.schema_validator');
$this->container = $container;
}