public function createMediaTypeUnsupportedException(RequestInterface $request, $mediaTypeName);
/** * @throws \WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnsupported */ public function validateContentTypeHeader() { if ($this->isValidMediaTypeHeader("Content-Type") === false) { throw $this->exceptionFactory->createMediaTypeUnsupportedException($this, $this->getHeaderLine("Content-Type")); } }