protected function resolve(array $data, array $rules, array $messages, array $customAttributes)
{
if (is_null($this->resolver)) {
return new Validator($this->translator, $data, $rules, $messages, $customAttributes);
} else {
return call_user_func($this->resolver, $this->translator, $data, $rules, $messages, $customAttributes);
}
}