public function EntryPoint::__construct in JSON:API 8.2
Same name and namespace in other branches
- 8 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
- src/
Controller/ EntryPoint.php, line 54
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;
}