39
39
* @method static ExtendedCacheItemPoolInterface Mongodb() Mongodb($config = []) Return a driver "Mongodb" instance
40
40
* @method static ExtendedCacheItemPoolInterface Predis() Predis($config = []) Return a driver "Predis" instance
41
41
* @method static ExtendedCacheItemPoolInterface Redis() Redis($config = []) Return a driver "Pedis" instance
42
+ * @method static ExtendedCacheItemPoolInterface Riak() Riak($config = []) Return a driver "Riak" instance
42
43
* @method static ExtendedCacheItemPoolInterface Sqlite() Sqlite($config = []) Return a driver "Sqlite" instance
43
44
* @method static ExtendedCacheItemPoolInterface Ssdb() Ssdb($config = []) Return a driver "Ssdb" instance
44
45
* @method static ExtendedCacheItemPoolInterface Wincache() Wincache($config = []) Return a driver "Wincache" instance
@@ -230,7 +231,7 @@ public static function getInstance($driver = 'auto', array $config = [], $instan
230
231
self ::$ instances [ $ instance ] = new $ class ($ config , $ instance );
231
232
self ::$ instances [ $ instance ]->setEventManager (EventManager::getInstance ());
232
233
} else {
233
- throw new phpFastCacheDriverNotFoundException ('The driver "%s" does not exists ' , $ driver );
234
+ throw new phpFastCacheDriverNotFoundException (sprintf ( 'The driver "%s" does not exists ' , $ driver) );
234
235
}
235
236
} catch (phpFastCacheDriverCheckException $ e ) {
236
237
if ($ config [ 'fallback ' ]) {
@@ -242,7 +243,7 @@ public static function getInstance($driver = 'auto', array $config = [], $instan
242
243
self ::$ instances [ $ instance ] = new $ class ($ config , $ instance );
243
244
self ::$ instances [ $ instance ]->setEventManager (EventManager::getInstance ());
244
245
} else {
245
- throw new phpFastCacheDriverNotFoundException ('The driver "%s" does not exists ' , $ driver );
246
+ throw new phpFastCacheDriverNotFoundException (sprintf ( 'The driver "%s" does not exists ' , $ driver) );
246
247
}
247
248
trigger_error (sprintf ('The "%s" driver is unavailable at the moment, the fallback driver "%s" has been used instead. ' , $ driver ,
248
249
$ fallback ), E_USER_WARNING );
0 commit comments