Ejemplo n.º 1
0
 /**
  * Initialize a new HtmlResponse.
  *
  * @param int $statusCode
  * @param string $content
  */
 public function __construct($statusCode = 200, $content)
 {
     parent::__construct($statusCode);
     $this->setContent($content);
 }
 /**
  * Initialize a new RedirectResponse.
  *
  * @param int $statusCode
  * @param string $location
  */
 public function __construct($statusCode, $location)
 {
     parent::__construct($statusCode);
     $this->setLocation($location);
 }