I think it's already taken care here: https://github.com/zf-fr/zfr-rest/blob/master/src/ZfrRest/Resource/Resource.php#L54