original_string: public function renderResource($view, array $parameters=[], $statusCode=200)
      {
          $this->findContentType()
              ->findViewType()
              ->buildViewTemplate($view)
              ->checkViewTemplateExists();
  
          $response = $this->createResponse($statusCode);
          $response->headers
              ->set('Content-Type', $this->contentType);
  
          return $this->render($this->viewTemplateName, $parameters, $response);
      }
code: public function renderResource($view, array $parameters=[], $statusCode=200)
      {
          $this->findContentType()
              ->findViewType()
              ->buildViewTemplate($view)
              ->checkViewTemplateExists();
  
          $response = $this->createResponse($statusCode);
          $response->headers
              ->set('Content-Type', $this->contentType);
  
          return $this->render($this->viewTemplateName, $parameters, $response);
      }
code_tokens: public function renderResource ( $ view , array $ parameters = [ ] , $ statusCode = 200 ) { $ this -> findContentType ( ) -> findViewType ( ) -> buildViewTemplate ( $ view ) -> checkViewTemplateExists ( ) ; $ response = $ this -> createResponse ( $ statusCode ) ; $ response -> headers -> set ( 'Content-Type' , $ this -> contentType ) ; return $ this -> render ( $ this -> viewTemplateName , $ parameters , $ response ) ; }
docstring: Creates a Response object and returns it.
  
  @param string $view
  @param array $parameters
  @param integer $statusCode
  @return Symfony\Component\HttpFoundation\Response
docstring_tokens: Creates a Response object and returns it .