HttpResponse.php 1.1 KB

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