Version 5.1 - All the GraphQL #32
@ -32,6 +32,11 @@ class CacheManager implements CacheInterface {
|
|||||||
$config = $container->get('config');
|
$config = $container->get('config');
|
||||||
$driverConf = $config->get('cache_driver');
|
$driverConf = $config->get('cache_driver');
|
||||||
|
|
||||||
|
if (empty($driverConf))
|
||||||
|
{
|
||||||
|
$driverConf = 'SQLDriver';
|
||||||
|
}
|
||||||
|
|
||||||
$driverClass = __NAMESPACE__ . "\\Driver\\{$driverConf}";
|
$driverClass = __NAMESPACE__ . "\\Driver\\{$driverConf}";
|
||||||
$driver = new $driverClass($container);
|
$driver = new $driverClass($container);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user