Do not use SQLite cache driver if authentication key has not been set

This commit is contained in:
Kijin Sung 2016-04-22 00:04:51 +09:00
parent b63d1d6bb1
commit 49dd1fba33
2 changed files with 14 additions and 9 deletions

View file

@ -72,7 +72,7 @@ class SQLite implements \Rhymix\Framework\Drivers\CacheInterface
*/
public function isSupported()
{
return class_exists('\\SQLite3', false);
return class_exists('\\SQLite3', false) && config('crypto.authentication_key');
}
/**