public function PhoneNumberVerification::__construct in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 src/Provider/PhoneNumberVerification.php \Drupal\sms\Provider\PhoneNumberVerification::__construct()
- 2.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.
\Drupal\Component\Datetime\TimeInterface $time: Time.
File
- src/
Provider/ PhoneNumberVerification.php, line 80
Class
- PhoneNumberVerification
- Phone number verification provider.
Namespace
Drupal\sms\ProviderCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, Token $token, SmsProviderInterface $sms_provider, TimeInterface $time) {
$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;
$this->time = $time;
}