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
...
@@ -339,7 +347,7 @@ class YiiBase
*
*
* @param string|array $config the configuration. It can be either a string or an array.
* @param string|array $config the configuration. It can be either a string or an array.
* @return mixed the created object
* @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()
* @see \yii\base\Object::newInstance()
*/
*/
publicstaticfunctioncreateObject($config)
publicstaticfunctioncreateObject($config)
...
@@ -351,7 +359,7 @@ class YiiBase
...
@@ -351,7 +359,7 @@ class YiiBase
$class=$config['class'];
$class=$config['class'];
unset($config['class']);
unset($config['class']);
}else{
}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.');