diff --git a/.devilbox/www/include/lib/container/Redis.php b/.devilbox/www/include/lib/container/Redis.php index 0a0f1bf5..235082f4 100644 --- a/.devilbox/www/include/lib/container/Redis.php +++ b/.devilbox/www/include/lib/container/Redis.php @@ -218,4 +218,14 @@ class Redis extends BaseClass implements BaseInterface return $this->_version; } + + public function isAvailable() + { + if (extension_loaded('redis')) { + return parent::isAvailable(); + } + + // when php module 'redis' not available or just disable by configuration (see .env PHP_MODULES_DISABLE) + return false; + } }