1 | <?php declare (strict_types=1); |
||
15 | final class Middleware |
||
16 | { |
||
17 | /** |
||
18 | 9 | * @return callable |
|
19 | */ |
||
20 | public static function httpErrors(): callable |
||
35 | |||
36 | /** |
||
37 | * @param callable $tokenGenerator |
||
38 | * @param Token $token |
||
39 | * |
||
40 | * @return callable |
||
41 | */ |
||
42 | 3 | public static function authHandler(callable $tokenGenerator, Token $token = null): callable |
|
48 | |||
49 | /** |
||
50 | * @codeCoverageIgnore |
||
51 | */ |
||
52 | public static function history(array &$container): callable |
||
56 | |||
57 | /** |
||
58 | * @codeCoverageIgnore |
||
59 | */ |
||
60 | public static function retry(callable $decider, callable $delay = null): callable |
||
64 | |||
65 | /** |
||
66 | * @codeCoverageIgnore |
||
67 | */ |
||
68 | public static function log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = LogLevel::INFO): callable |
||
72 | |||
73 | /** |
||
74 | * @codeCoverageIgnore |
||
75 | */ |
||
76 | public static function prepareBody(): callable |
||
80 | |||
81 | /** |
||
82 | * @codeCoverageIgnore |
||
83 | */ |
||
84 | public static function mapRequest(callable $fn): callable |
||
88 | |||
89 | /** |
||
90 | * @codeCoverageIgnore |
||
91 | */ |
||
92 | public static function mapResponse(callable $fn): callable |
||
96 | } |
||
97 |