/**
* 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);
}
}