function 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\ControllerCode
public function __construct(ResourceTypeRepositoryInterface $resource_type_repository, AccountInterface $user) {
$this->resourceTypeRepository = $resource_type_repository;
$this->user = $user;
}