public function HttpController::__construct in JSON-RPC 2.x
Same name and namespace in other branches
- 8 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 55
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;
}