1 | <?php |
||
20 | class ConnectMiddleware |
||
21 | { |
||
22 | /** |
||
23 | * @var AuthenticationInterface |
||
24 | */ |
||
25 | private $auth; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $appContext; |
||
31 | |||
32 | /** |
||
33 | * ConnectMiddleware constructor. |
||
34 | * |
||
35 | * @param AuthenticationInterface $auth |
||
36 | * @param string $appContext |
||
37 | */ |
||
38 | public function __construct(AuthenticationInterface $auth, $appContext) |
||
43 | |||
44 | /** |
||
45 | * @param callable $handler |
||
46 | * |
||
47 | * @return \Closure |
||
48 | */ |
||
49 | public function __invoke(callable $handler) |
||
64 | |||
65 | /** |
||
66 | * @param RequestInterface $request |
||
67 | * |
||
68 | * @return RequestInterface |
||
69 | */ |
||
70 | private function appendHeaders(RequestInterface $request) |
||
78 | |||
79 | /** |
||
80 | * @param RequestInterface $request |
||
81 | * |
||
82 | * @return RequestInterface |
||
83 | */ |
||
84 | private function appendQueryParams(RequestInterface $request) |
||
93 | } |
||
94 |