getUser($request), $structuralElement)) { throw new AuthorizationFailedException(); } /** @var StructuralElementFeedback[] $resources */ $resources = $structuralElement->feedback; return $this->getContentResponse($resources); } }