thrownew\yii\base\Exception("Class name '$className' does not match the class file '".realpath($classFile)."'. Have you checked their case sensitivity?");
thrownewException("Class name '$className' does not match the class file '".realpath($classFile)."'. Have you checked their case sensitivity?");
}
}
...
...
@@ -339,7 +347,7 @@ class YiiBase
*
* @param string|array $config the configuration. It can be either a string or an array.
* @return mixed the created object
* @throws \yii\base\Exception if the configuration is invalid.
* @throws Exception if the configuration is invalid.
* @see \yii\base\Object::newInstance()
*/
publicstaticfunctioncreateObject($config)
...
...
@@ -351,7 +359,7 @@ class YiiBase
$class=$config['class'];
unset($config['class']);
}else{
thrownew\yii\base\Exception('Object configuration must be an array containing a "class" element.');
thrownewException('Object configuration must be an array containing a "class" element.');