You are here

public function PhoneNumberProvider::__construct in SMS Framework 8

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

Constructs a new PhoneNumberProvider object.

Parameters

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

\Drupal\sms\Provider\SmsProviderInterface $sms_provider: The SMS provider.

File

src/Provider/PhoneNumberProvider.php, line 41

Class

PhoneNumberProvider
Phone number provider.

Namespace

Drupal\sms\Provider

Code

public function __construct(EventDispatcherInterface $event_dispatcher, SmsProviderInterface $sms_provider) {
  $this->eventDispatcher = $event_dispatcher;
  $this->smsProvider = $sms_provider;
}