mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-25 17:55:14 +00:00
Merge pull request #56 from vaxltd/issue19/redeclare-redisexception
Ensure RedisException is not redeclared to allow PHPRedis compatibility
This commit is contained in:
commit
28a98d73b1
@ -11,9 +11,12 @@ define('CRLF', sprintf('%s%s', chr(13), chr(10)));
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Wraps native Redis errors in friendlier PHP exceptions
|
* Wraps native Redis errors in friendlier PHP exceptions
|
||||||
|
* Only declared if class doesn't already exist to ensure compatibility with php-redis
|
||||||
*/
|
*/
|
||||||
|
if (! class_exists('RedisException')) {
|
||||||
class RedisException extends Exception {
|
class RedisException extends Exception {
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redisent, a Redis interface for the modest among us
|
* Redisent, a Redis interface for the modest among us
|
||||||
|
Loading…
Reference in New Issue
Block a user