Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 33d77da

Browse files
committed
Typo
1 parent d60d19d commit 33d77da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Service/Cache.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)