protected function rebindHorizonRedisFactory()
    {
        // Although not all of the classes that Horizon registers need an
        // instance of the Redis service, we'll set up contextual bindings
        // for any declared so we don't need to update this package in the
        // future every time Horizon adds or removes one:
        foreach ((new HorizonServiceBindings()) as $serviceClass) {
            $this->app->when($serviceClass)
                ->needs(RedisFactory::class)
                ->give(function () {
                    return $this->app->make('redis-sentinel.manager');
                });
        }
    }
protected function rebindHorizonRedisFactory()
    {
        // Although not all of the classes that Horizon registers need an
        // instance of the Redis service, we'll set up contextual bindings
        // for any declared so we don't need to update this package in the
        // future every time Horizon adds or removes one:
        foreach ((new HorizonServiceBindings()) as $serviceClass) {
            $this->app->when($serviceClass)
                ->needs(RedisFactory::class)
                ->give(function () {
                    return $this->app->make('redis-sentinel.manager');
                });
        }
    }
protected function rebindHorizonRedisFactory ( ) { // Although not all of the classes that Horizon registers need an // instance of the Redis service, we'll set up contextual bindings // for any declared so we don't need to update this package in the // future every time Horizon adds or removes one: foreach ( ( new HorizonServiceBindings ( ) ) as $ serviceClass ) { $ this -> app -> when ( $ serviceClass ) -> needs ( RedisFactory :: class ) -> give ( function ( ) { return $ this -> app -> make ( 'redis-sentinel.manager' ) ; } ) ; } }
Add contextual bindings for Horizon's services that inject the package's
Redis Sentinel manager.

@return void
Add contextual bindings for Horizon s services that inject the package s Redis Sentinel manager .