replace Exception on InitializationException
This commit is contained in:
2
cache/MemcacheCache.php
vendored
2
cache/MemcacheCache.php
vendored
@ -40,7 +40,7 @@ class MemcacheCache extends Cache
|
||||
foreach ($config as $c) {
|
||||
foreach ($required as $option) {
|
||||
if (!isset($c[$option])) {
|
||||
throw new Exception('Configuration must have a "' . $option . '".');
|
||||
throw new InitializationException('Configuration must have a "' . $option . '".');
|
||||
}
|
||||
}
|
||||
$this->connection->addServer($c['hostname'], $c['port']);
|
||||
|
Reference in New Issue
Block a user