You are here

public function DocumentResolver::__construct in JSON:API Resources 8

Constructs a JSON:API document argument resolver.

Parameters

\Drupal\jsonapi_resources\Unstable\DocumentExtractor $document_extractor: The document extractor.

File

src/Unstable/Controller/ArgumentResolver/DocumentResolver.php, line 31

Class

DocumentResolver
Deserializes POST, PATCH and DELETE request documents.

Namespace

Drupal\jsonapi_resources\Unstable\Controller\ArgumentResolver

Code

public function __construct(DocumentExtractor $document_extractor) {
  $this->documentExtractor = $document_extractor;
}