snc/SncRedisBundle — pull request #126 by antoox (2014-01-30 13:46:36+00:00)
Title: Restructure the phpredis client.

__Fix the issue: https://github.com/snc/SncRedisBundle/issues/90__

On the Phpredis Client directory:
We have now a __ClientInterface__, a __BaseClient__ class (simple proxy of the \Redis object) and a __Client__ class (extends *BaseClient*) which works as before.

When logging is set to *false*, we instantiate a _\Snc\RedisBundle\Client\BaseClient_ otherwise it is a _\Snc\RedisBundle\Client\Client_. On the application, we can type hint for *\Snc\RedisBundle\Client\ClientInterface* (and to be sure that logs are activated for this object we can check the type of object *(\Snc\RedisBundle\Client\PhpredisClient)*).

A new option __"phpredis_base_connection_wrapper"__ is available and allows to use your own base class client.

This implementation is still open on modifications. Any comments would be grateful.

Cheers,
Yassine Khial