@@ 136-145 (lines=10) @@ | ||
133 | /** |
|
134 | * {@inheritdoc} |
|
135 | */ |
|
136 | public function getResponse(InternalRequestInterface $internalRequest, MessageFactoryInterface $messageFactory) |
|
137 | { |
|
138 | if (!$this->adapter->has($id = $this->getIdentifier($internalRequest, 'response'))) { |
|
139 | return; |
|
140 | } |
|
141 | ||
142 | $response = $this->unserializeResponse($this->adapter->get($id), $messageFactory); |
|
143 | ||
144 | return $response->withParameter('request', $internalRequest); |
|
145 | } |
|
146 | ||
147 | /** |
|
148 | * {@inheritdoc} |
|
@@ 150-160 (lines=11) @@ | ||
147 | /** |
|
148 | * {@inheritdoc} |
|
149 | */ |
|
150 | public function getException(InternalRequestInterface $internalRequest, MessageFactoryInterface $messageFactory) |
|
151 | { |
|
152 | if (!$this->cacheException || !$this->adapter->has($id = $this->getIdentifier($internalRequest, 'exception'))) { |
|
153 | return; |
|
154 | } |
|
155 | ||
156 | $exception = $this->unserializeException($this->adapter->get($id)); |
|
157 | $exception->setRequest($internalRequest); |
|
158 | ||
159 | return $exception; |
|
160 | } |
|
161 | ||
162 | /** |
|
163 | * {@inheritdoc} |