mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
Fixes #16469: Allow cache to be specified as interface and to be configured in DI container
This commit is contained in:
committed by
Alexander Makarov
parent
4656e2dcdc
commit
b5be47321b
@ -290,7 +290,7 @@ class CacheController extends Controller
|
||||
*/
|
||||
private function isCacheClass($className)
|
||||
{
|
||||
return is_subclass_of($className, 'yii\caching\CacheInterface');
|
||||
return is_subclass_of($className, 'yii\caching\CacheInterface') || $className === 'yii\caching\CacheInterface';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user