Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as DbCache

This commit is contained in:
Qiang Xue
2015-01-04 19:28:05 -05:00
parent 389d9e2fd2
commit d341bf02b4
20 changed files with 73 additions and 26 deletions

View File

@ -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';
/**