HttpResponse.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * HTTP Response from HttpSocket.
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://cakephp.org CakePHP(tm) Project
  15. * @since CakePHP(tm) v 2.0.0
  16. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  17. */
  18. App::uses('HttpSocketResponse', 'Network/Http');
  19. if (class_exists('HttpResponse')) {
  20. trigger_error(__d(
  21. 'cake_dev',
  22. "HttpResponse is deprecated due to naming conflicts. Use HttpSocketResponse instead."
  23. ), E_USER_ERROR);
  24. }
  25. /**
  26. * HTTP Response from HttpSocket.
  27. *
  28. * @package Cake.Network.Http
  29. * @deprecated This class is deprecated as it has naming conflicts with pecl/http
  30. */
  31. class HttpResponse extends HttpSocketResponse {
  32. }