createInclusionUnsupportedException() 공개 메소드

public createInclusionUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : Exception
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
리턴 Exception
예제 #1
0
파일: JsonApi.php 프로젝트: garethwi/yin
 /**
  * Disables inclusion of related resources.
  *
  * If the current request asks for inclusion of related resources, it throws an InclusionNotSupported exception.
  *
  * @throws \WoohooLabs\Yin\JsonApi\Exception\InclusionUnsupported
  */
 public function disableIncludes()
 {
     if ($this->request->getQueryParam("include") !== null) {
         throw $this->exceptionFactory->createInclusionUnsupportedException($this->request);
     }
 }