mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as DbCache
This commit is contained in:
@ -24,9 +24,10 @@ use yii\di\Instance;
|
||||
class FragmentCache extends Widget
|
||||
{
|
||||
/**
|
||||
* @var Cache|string the cache object or the application component ID of the cache object.
|
||||
* @var Cache|array|string the cache object or the application component ID of the cache object.
|
||||
* After the FragmentCache object is created, if you want to change this property,
|
||||
* you should only assign it with a cache object.
|
||||
* Starting from version 2.0.2, this can also be a configuration array for creating the object.
|
||||
*/
|
||||
public $cache = 'cache';
|
||||
/**
|
||||
|
Reference in New Issue
Block a user