You are here

public function EntryPoint::__construct in JSON:API 8

Same name and namespace in other branches
  1. 8.2 src/Controller/EntryPoint.php \Drupal\jsonapi\Controller\EntryPoint::__construct()

EntryPoint constructor.

Parameters

\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The resource type repository.

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

File

src/Controller/EntryPoint.php, line 43

Class

EntryPoint
Controller for the API entry point.

Namespace

Drupal\jsonapi\Controller

Code

public function __construct(ResourceTypeRepositoryInterface $resource_type_repository, RendererInterface $renderer) {
  $this->resourceTypeRepository = $resource_type_repository;
  $this->renderer = $renderer;
}