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.');
* configure a dedicated cache component for the sole purpose of storing raw unserialized data, the main cache component should always support serialization.
* configure a dedicated cache component for the sole purpose of storing raw unserialized data, the main cache component should always support serialization.
* @since 1.1.11
* @since 1.1.11
**/
**/
public$autoSerialize=true;
public$autoSerialize=true;
/**
/**
* @var boolean wether to make use of the {@link http://pecl.php.net/package/igbinary igbinary} serializer for cache entry serialization. Defaults to false.
* @var boolean wether to make use of the {@link http://pecl.php.net/package/igbinary igbinary} serializer for cache entry serialization. Defaults to false.