@@ 52-54 (lines=3) @@ | ||
49 | string $transactionId, |
|
50 | array $options = [] |
|
51 | ): CancellablePromiseInterface { |
|
52 | if (!isset($options[self::class][Options::LEVEL]) && !isset($options[self::class][Options::ERROR_LEVEL])) { |
|
53 | return resolve($request); |
|
54 | } |
|
55 | ||
56 | $this->context[$transactionId][self::REQUEST]['method'] = $request->getMethod(); |
|
57 | $this->context[$transactionId][self::REQUEST]['uri'] = (string)$request->getUri(); |
|
@@ 87-89 (lines=3) @@ | ||
84 | } |
|
85 | ||
86 | $context = $this->context[$transactionId]; |
|
87 | if (!isset($options[self::class][Options::LEVEL]) && !isset($options[self::class][Options::ERROR_LEVEL])) { |
|
88 | unset($this->context[$transactionId]); |
|
89 | } |
|
90 | ||
91 | if (!isset($options[self::class][Options::LEVEL])) { |
|
92 | return resolve($response); |