public function SearchSubscriber::postExecuteRequest in Acquia Search Multiple Indexes 8
Validate response.
Parameters
PostExecuteRequestEvent $event:
File
- src/
EventSubscriber/ SearchSubscriber.php, line 63
Class
Namespace
Drupal\acquia_search_multi_subs\EventSubscriberCode
public function postExecuteRequest($event) {
$response = $event
->getResponse();
if ($response
->getStatusCode() != 200) {
throw new HttpException($response
->getStatusMessage());
}
if ($event
->getRequest()
->getHandler() == 'admin/ping') {
return;
}
$this
->authenticateResponse($event
->getResponse(), $this->nonce, $this->uri, NULL, $this->client
->getEndpoint()
->getOption('core'));
}