Bravo3\Orm\Drivers\Redis\SentinelMonitor::__construct PHP Method

__construct() public method

If more than one sentinel server parameters are provided, the first sentinel that connects will be used for retrival of information.
public __construct ( mixed $connection_params = null )
$connection_params mixed
    public function __construct($connection_params = null)
    {
        foreach ($connection_params as $connection) {
            $this->client = new Client($connection);
            // Usable connection is found
            if ($this->client->isConnected()) {
                break;
            }
        }
    }