mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #14081: Added yii\caching\CacheInterface
to make custom cache extensions adoption easier
This commit is contained in:

committed by
Alexander Makarov

parent
2b7e8be1e8
commit
cb53b2feec
@ -37,7 +37,7 @@ class ChainedDependency extends Dependency
|
||||
|
||||
/**
|
||||
* Evaluates the dependency by generating and saving the data related with dependency.
|
||||
* @param Cache $cache the cache component that is currently evaluating this dependency
|
||||
* @param CacheInterface $cache the cache component that is currently evaluating this dependency
|
||||
*/
|
||||
public function evaluateDependency($cache)
|
||||
{
|
||||
@ -49,7 +49,7 @@ class ChainedDependency extends Dependency
|
||||
/**
|
||||
* Generates the data needed to determine if dependency has been changed.
|
||||
* This method does nothing in this class.
|
||||
* @param Cache $cache the cache component that is currently evaluating this dependency
|
||||
* @param CacheInterface $cache the cache component that is currently evaluating this dependency
|
||||
* @return mixed the data needed to determine if dependency has been changed.
|
||||
*/
|
||||
protected function generateDependencyData($cache)
|
||||
|
Reference in New Issue
Block a user