public createInclusionUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : Exception | ||
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | |
리턴 | Exception |
/** * 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); } }