@@ -29,7 +29,6 @@ class Cache
2929 public function __construct ($ drivers )
3030 {
3131 foreach ($ drivers ['drivers ' ] as $ name => $ driver ) {
32- dump ($ driver );
3332 $ this ->createInstance ($ name , CacheManager::getInstance ($ driver ['type ' ], $ driver ['parameters ' ]));
3433 }
3534 }
@@ -45,7 +44,7 @@ public function __construct($drivers)
4544 public function createInstance ($ name , ExtendedCacheItemPoolInterface $ instance )
4645 {
4746 if (array_key_exists ($ name , $ this ->cacheInstances ) && $ this ->cacheInstances [$ name ] instanceof ExtendedCacheItemPoolInterface) {
48- throw new phpFastCacheDriverException ("Driver named $ name already exists " );
47+ throw new phpFastCacheDriverException ("Cache instance ' { $ name} ' already exists " );
4948 }
5049 $ this ->cacheInstances [$ name ] = $ instance ;
5150 }
@@ -62,10 +61,10 @@ public function createInstance($name, ExtendedCacheItemPoolInterface $instance)
6261 public function get ($ name )
6362 {
6463 if (!array_key_exists ($ name , $ this ->cacheInstances )) {
65- throw new phpFastCacheDriverException ("Driver named $ name not exists " );
64+ throw new phpFastCacheDriverException ("Cache instance ' { $ name} ' not exists " );
6665 }
6766 if (!$ this ->cacheInstances [$ name ] instanceof ExtendedCacheItemPoolInterface) {
68- throw new phpFastCacheDriverException ("Driver named $ name already instanciated " );
67+ throw new phpFastCacheDriverException ("Cache instance ' { $ name} ' already instanciated " );
6968 }
7069
7170 return $ this ->cacheInstances [$ name ];
0 commit comments