Commit b65b0ce5 by Carsten Brandt

better exception message for non existing validator

parent 15c5f94f
...@@ -193,6 +193,9 @@ class Validator extends Component ...@@ -193,6 +193,9 @@ class Validator extends Component
$params[$name] = $value; $params[$name] = $value;
} }
} else { } else {
if (!class_exists($type)) {
throw new InvalidConfigException("Unknown validator: '$type'.");
}
$params['class'] = $type; $params['class'] = $type;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment