public function makeInstance()
    {
        $class = $this->getVersionedRedisSentinelManagerClass();
        $config = $this->config->get('database.redis-sentinel', [ ]);
        $driver = Arr::pull($config, 'client', 'predis');

        // Laravel 5.7 introduced the app as the first parameter:
        if ($this->appVersionLessThan('5.7')) {
            return new RedisSentinelManager(new $class($driver, $config));
        }

        return new RedisSentinelManager(new $class($this->app, $driver, $config));

    }
public function makeInstance()
    {
        $class = $this->getVersionedRedisSentinelManagerClass();
        $config = $this->config->get('database.redis-sentinel', [ ]);
        $driver = Arr::pull($config, 'client', 'predis');

        // Laravel 5.7 introduced the app as the first parameter:
        if ($this->appVersionLessThan('5.7')) {
            return new RedisSentinelManager(new $class($driver, $config));
        }

        return new RedisSentinelManager(new $class($this->app, $driver, $config));

    }
public function makeInstance ( ) { $ class = $ this -> getVersionedRedisSentinelManagerClass ( ) ; $ config = $ this -> config -> get ( 'database.redis-sentinel' , [ ] ) ; $ driver = Arr :: pull ( $ config , 'client' , 'predis' ) ; // Laravel 5.7 introduced the app as the first parameter: if ( $ this -> appVersionLessThan ( '5.7' ) ) { return new RedisSentinelManager ( new $ class ( $ driver , $ config ) ) ; } return new RedisSentinelManager ( new $ class ( $ this -> app , $ driver , $ config ) ) ; }
Create an instance of the package's core Redis Sentinel service.

@return \Monospice\LaravelRedisSentinel\Contracts\Factory A configured
Redis Sentinel connection manager.
Create an instance of the package s core Redis Sentinel service .