You are here

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

File

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

Class

DocumentResolver
Deserializes POST, PATCH and DELETE request documents.

Namespace

Drupal\jsonapi_resources\Unstable\Controller\ArgumentResolver

Code

public function resolve(Request $request, ArgumentMetadata $argument) {
  (yield $this->documentExtractor
    ->getDocument($request));
}