for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Monospice\LaravelRedisSentinel\Manager;
use Monospice\LaravelRedisSentinel\Manager\VersionedRedisSentinelManager;
/**
* Enables Laravel's Redis database driver to accept configuration options for
* Redis Sentinel connections independently. Supports Laravel version 5.4.20
* and greater.
*
* In version 5.4.20, Laravel modified the public interface of the RedisManager
* class. The visibility of 'RedisManager::resolve()' changed to 'public'.
* @category Package
* @package Monospice\LaravelRedisSentinel
* @author Cy Rossignol <[email protected]>
* @license See LICENSE file
* @link http://github.com/monospice/laravel-redis-sentinel-drivers
*/
class Laravel5420RedisSentinelManager extends VersionedRedisSentinelManager
{
* Get the Redis Connection instance represented by the specified name
* @param string|null $name The name of the connection as defined in the
* configuration
* @return \Illuminate\Redis\Connections\PredisConnection The configured
* Redis Connection instance
* @throws InvalidArgumentException If attempting to initialize a Redis
* Cluster connection
* @throws InvalidArgumentException If the specified connection is not
* defined in the configuration
public function resolve($name = null)
return $this->resolveConnection($name);
}