You are here

public function SmsDeliveryReportsProcessor::__construct in SMS Framework 8

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

Creates a new SmsDeliveryReportsProcessor controller.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/EventSubscriber/SmsDeliveryReportsProcessor.php, line 28

Class

SmsDeliveryReportsProcessor
Handles delivery reports as they come in and updates storage.

Namespace

Drupal\sms\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->reportStorage = $entity_type_manager
    ->getStorage('sms_report');
}