ResponseFactory.php 470 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\HTTP;
  7. /**
  8. * A factory for an HTTP response.
  9. */
  10. class ResponseFactory
  11. {
  12. /**
  13. * Creates a new \Zend_Http_Response object from a string.
  14. *
  15. * @param string $response
  16. * @return \Zend_Http_Response
  17. */
  18. public function create($response)
  19. {
  20. return \Zend_Http_Response::fromString($response);
  21. }
  22. }