original_string: protected function configure(Connection $connection, $name)
      {
          $connection->setName($name);
  
          if ($this->events && $this->app->bound('events')) {
              $connection->setEventDispatcher($this->app->make('events'));
          }
  
          return $connection;
      }
code: protected function configure(Connection $connection, $name)
      {
          $connection->setName($name);
  
          if ($this->events && $this->app->bound('events')) {
              $connection->setEventDispatcher($this->app->make('events'));
          }
  
          return $connection;
      }
code_tokens: protected function configure ( Connection $ connection , $ name ) { $ connection -> setName ( $ name ) ; if ( $ this -> events && $ this -> app -> bound ( 'events' ) ) { $ connection -> setEventDispatcher ( $ this -> app -> make ( 'events' ) ) ; } return $ connection ; }
docstring: Configure the given connection to prepare it for commands.
  
  @param  \Illuminate\Redis\Connections\Connection  $connection
  @param  string  $name
  @return \Illuminate\Redis\Connections\Connection
docstring_tokens: Configure the given connection to prepare it for commands .