You are here

public function DeliveryReportController::processDeliveryReport in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/DeliveryReportController.php \Drupal\sms\DeliveryReportController::processDeliveryReport()
  2. 2.1.x src/DeliveryReportController.php \Drupal\sms\DeliveryReportController::processDeliveryReport()

Acknowledges delivery reports and passes them to the correct gateway.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The current request.

\Drupal\sms\Entity\SmsGatewayInterface $sms_gateway: The gateway which is handling the the delivery report.

Return value

\Symfony\Component\HttpFoundation\Response A response object to return.

File

src/DeliveryReportController.php, line 60

Class

DeliveryReportController
Provides delivery reports acknowledgement and passes to the correct gateway.

Namespace

Drupal\sms

Code

public function processDeliveryReport(Request $request, SmsGatewayInterface $sms_gateway) {
  return $this->smsProvider
    ->processDeliveryReport($request, $sms_gateway);
}