Commit 2c2ae138 authored by Cédric Anne's avatar Cédric Anne Committed by Johan Cwiklinski

Fix cache instanciation exception catching

parent 9fef49fe
......@@ -32,8 +32,6 @@
namespace Glpi\Cache;
use Zend\Cache\Exception\ExceptionInterface;
/**
* Glpi simple cache factory.
*
......@@ -104,7 +102,7 @@ class SimpleCacheFactory
try {
$storage = $this->storageFactory->factory($cfg);
} catch (ExceptionInterface $e) {
} catch (\Exception $e) {
if ($isAdapterComputed && 'filesystem' !== $cfg['adapter']) {
// Fallback to 'filesystem' adapter if adapter was not explicitely defined in config
trigger_error(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment