ResponseFormatterInterface.php 543 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\web;
  8. /**
  9. * ResponseFormatterInterface specifies the interface needed to format a response before it is sent out.
  10. *
  11. * @author Qiang Xue <qiang.xue@gmail.com>
  12. * @since 2.0
  13. */
  14. interface ResponseFormatterInterface
  15. {
  16. /**
  17. * Formats the specified response.
  18. * @param Response $response the response to be formatted.
  19. */
  20. public function format($response);
  21. }