You are here

public function Handler::__construct in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 src/Handler.php \Drupal\jsonrpc\Handler::__construct()

Handler constructor.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $method_manager: The plugin manager for the JSON RPC methods.

\Drupal\Core\Render\RendererInterface $renderer: The Drupal renderer.

File

src/Handler.php, line 52

Class

Handler
Manages all the JSON-RPC business logic.

Namespace

Drupal\jsonrpc

Code

public function __construct(PluginManagerInterface $method_manager, RendererInterface $renderer) {
  $this->methodManager = $method_manager;
  $this->renderer = $renderer;
}