You are here

public function PhoneNumberVerification::__construct in SMS Framework 8

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

Constructs a new PhoneNumberProvider object.

Parameters

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

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

\Drupal\Core\Utility\Token $token: The token replacement system.

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

File

src/Provider/PhoneNumberVerification.php, line 68

Class

PhoneNumberVerification
Phone number verification provider.

Namespace

Drupal\sms\Provider

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, Token $token, SmsProviderInterface $sms_provider) {
  $this->smsProvider = $sms_provider;
  $this->phoneNumberSettings = $entity_type_manager
    ->getStorage('phone_number_settings');
  $this->phoneNumberVerificationStorage = $entity_type_manager
    ->getStorage('sms_phone_number_verification');
  $this->token = $token;
  $this->configFactory = $config_factory;
}