protected function configure(Connection $connection, $name)
    {
        $connection->setName($name);

        if ($this->events && $this->app->bound('events')) {
            $connection->setEventDispatcher($this->app->make('events'));
        }

        return $connection;
    }
protected function configure(Connection $connection, $name)
    {
        $connection->setName($name);

        if ($this->events && $this->app->bound('events')) {
            $connection->setEventDispatcher($this->app->make('events'));
        }

        return $connection;
    }
protected function configure ( Connection $ connection , $ name ) { $ connection -> setName ( $ name ) ; if ( $ this -> events && $ this -> app -> bound ( 'events' ) ) { $ connection -> setEventDispatcher ( $ this -> app -> make ( 'events' ) ) ; } return $ connection ; }
Configure the given connection to prepare it for commands.

@param  \Illuminate\Redis\Connections\Connection  $connection
@param  string  $name
@return \Illuminate\Redis\Connections\Connection
Configure the given connection to prepare it for commands .