LaravelResponse.php 669 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php namespace Symfony\Component\HttpFoundation;
  2. /**
  3. * Response represents an HTTP response.
  4. *
  5. * @author Fabien Potencier <[email protected]>
  6. *
  7. * @api
  8. */
  9. class LaravelResponse extends Response
  10. {
  11. /**
  12. * Sends HTTP headers and content.
  13. *
  14. * @return Response
  15. *
  16. * @api
  17. */
  18. public function send()
  19. {
  20. $this->sendHeaders();
  21. $this->sendContent();
  22. return $this;
  23. }
  24. /**
  25. * Finishes the request for PHP-FastCGI
  26. *
  27. * @return void
  28. */
  29. public function finish()
  30. {
  31. if (function_exists('fastcgi_finish_request')) {
  32. fastcgi_finish_request();
  33. }
  34. }
  35. }