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