original_string: public function toRoute($name, array $params = [])
      {
          $url = $this->getUrl()->fromRoute($name, $params);
  
          return $this->toUrl($url);
      }
code: public function toRoute($name, array $params = [])
      {
          $url = $this->getUrl()->fromRoute($name, $params);
  
          return $this->toUrl($url);
      }
code_tokens: public function toRoute ( $ name , array $ params = [ ] ) { $ url = $ this -> getUrl ( ) -> fromRoute ( $ name , $ params ) ; return $ this -> toUrl ( $ url ) ; }
docstring: Generates redirection by given route.
  
  @param string $name   The route name
  @param array  $params Optional; The route parameters
  
  @return \Es\Http\Psr\ResponseInterface The response
docstring_tokens: Generates redirection by given route .