HttpResponse.php 1.1 KB

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