You are here

public function SmsMessageProcessor::__construct in SMS Framework 8

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

Creates a new SmsMessageProcessor controller.

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

File

src/EventSubscriber/SmsMessageProcessor.php, line 53

Class

SmsMessageProcessor
Handles messages before they are processed by queue(), send(), or incoming().

Namespace

Drupal\sms\EventSubscriber

Code

public function __construct(EventDispatcherInterface $event_dispatcher, ConfigFactoryInterface $config_factory) {
  $this->eventDispatcher = $event_dispatcher;
  $this->configFactory = $config_factory;
}