You are here

public function EntryPoint::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Controller/EntryPoint.php \Drupal\jsonapi\Controller\EntryPoint::__construct()
  2. 10 core/modules/jsonapi/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\Session\AccountInterface $user: The current user.

File

core/modules/jsonapi/src/Controller/EntryPoint.php, line 53

Class

EntryPoint
Controller for the API entry point.

Namespace

Drupal\jsonapi\Controller

Code

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