You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
In Laravel 5.4, the old Illuminate\Redis\Database class was replaced with Illuminate\Redis\RedisManager. This new class returns either a Illuminate\Redis\Connections\PredisConnection or a Illuminate\Redis\Connections\PhpRedisConnection, both of which extend Illuminate\Redis\Connections\Connection.
Unfortunately neither of those classes extend an interface that can be type hinted against, so I propose we either add a Illuminate\Contracts\Redis\Connections\Connection interface or a Illuminate\Redis\Connections\ConnectionInterface
Potential Interface:
<?phpnamespaceIlluminate\Redis\Connections;
useClosure;
interface ConnectionInterface
{
/** * Subscribe to a set of given channels for messages. * * @param array|string $channels * @param \Closure $callback * @return void */publicfunctionsubscribe($channels, Closure$callback);
/** * Subscribe to a set of given channels with wildcards. * * @param array|string $channels * @param \Closure $callback * @return void */publicfunctionpsubscribe($channels, Closure$callback);
/** * Run a command against the Redis database. * * @param string $method * @param array $parameters * @return mixed */publicfunctioncommand($method, array$parameters = []);
}
The text was updated successfully, but these errors were encountered:
In Laravel 5.4, the old
Illuminate\Redis\Database
class was replaced withIlluminate\Redis\RedisManager
. This new class returns either aIlluminate\Redis\Connections\PredisConnection
or aIlluminate\Redis\Connections\PhpRedisConnection
, both of which extendIlluminate\Redis\Connections\Connection
.Unfortunately neither of those classes extend an interface that can be type hinted against, so I propose we either add a
Illuminate\Contracts\Redis\Connections\Connection
interface or aIlluminate\Redis\Connections\ConnectionInterface
Potential Interface:
The text was updated successfully, but these errors were encountered: