createMediaTypeUnsupportedException() 공개 메소드

public createMediaTypeUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $mediaTypeName ) : Exception
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$mediaTypeName string
리턴 Exception
예제 #1
0
파일: Request.php 프로젝트: woohoolabs/yin
 /**
  * @throws \WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnsupported
  */
 public function validateContentTypeHeader()
 {
     if ($this->isValidMediaTypeHeader("Content-Type") === false) {
         throw $this->exceptionFactory->createMediaTypeUnsupportedException($this, $this->getHeaderLine("Content-Type"));
     }
 }