Skip to content
Snippets Groups Projects
Commit a5ca94c8 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Add a check to the constructor of the new redis store to check if...

Add a check to the constructor of the new redis store to check if predis/predis is available, and throw a critical configuration error if not.
parent 10bbff7d
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,10 @@ class Redis extends Store
{
assert('is_null($redis) || is_subclass_of($redis, "Predis\\Client")');
if (!class_exists('\Predis\Client')) {
throw new \SimpleSAML\Error\CriticalConfigurationError('predis/predis is not available.');
}
if (is_null($redis)) {
$config = Configuration::getInstance();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment