1 | <?php |
||
21 | class HeaderAppendPlugin implements Plugin |
||
22 | { |
||
23 | private $headers = []; |
||
24 | |||
25 | /** |
||
26 | * @param array $headers headers to add to the request |
||
27 | */ |
||
28 | 3 | public function __construct(array $headers) |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 1 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
44 | } |
||
45 |
If you suppress an error, we recommend checking for the error condition explicitly: