Mercurial > hg > isophonics-drupal-site
comparison vendor/zendframework/zend-diactoros/src/Response/EmitterInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 /** | |
3 * Zend Framework (http://framework.zend.com/) | |
4 * | |
5 * @see http://github.com/zendframework/zend-diactoros for the canonical source repository | |
6 * @copyright Copyright (c) 2015-2016 Zend Technologies USA Inc. (http://www.zend.com) | |
7 * @license https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md New BSD License | |
8 */ | |
9 | |
10 namespace Zend\Diactoros\Response; | |
11 | |
12 use Psr\Http\Message\ResponseInterface; | |
13 | |
14 interface EmitterInterface | |
15 { | |
16 /** | |
17 * Emit a response. | |
18 * | |
19 * Emits a response, including status line, headers, and the message body, | |
20 * according to the environment. | |
21 * | |
22 * Implementations of this method may be written in such a way as to have | |
23 * side effects, such as usage of header() or pushing output to the | |
24 * output buffer. | |
25 * | |
26 * Implementations MAY raise exceptions if they are unable to emit the | |
27 * response; e.g., if headers have already been sent. | |
28 * | |
29 * @param ResponseInterface $response | |
30 */ | |
31 public function emit(ResponseInterface $response); | |
32 } |