1 | <?php |
||
15 | final class QueryDefaultsPlugin implements Plugin |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $queryParams = []; |
||
21 | |||
22 | /** |
||
23 | * @param array $queryParams Hashmap of query name to query value. Names and values must not be url encoded as |
||
24 | * this plugin will encode them |
||
25 | */ |
||
26 | 3 | public function __construct(array $queryParams) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 1 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
54 | } |
||
55 |