You are here

public function JsonApiSchemaController::__construct in JSON:API Schema 8

JsonApiSchemaController constructor.

Parameters

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

\Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer: The serializer.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/Controller/JsonApiSchemaController.php, line 67

Class

JsonApiSchemaController

Namespace

Drupal\jsonapi_schema\Controller

Code

public function __construct(ResourceTypeRepositoryInterface $resource_type_repository, NormalizerInterface $normalizer, EntityTypeManagerInterface $entity_type_manager, StaticDataDefinitionExtractor $static_data_definition_extractor) {
  $this->resourceTypeRepository = $resource_type_repository;
  $this->normalizer = $normalizer;
  $this->entityTypeManager = $entity_type_manager;
  $this->staticDataDefinitionExtractor = $static_data_definition_extractor;
}