You are here

public function AccountRegistration::__construct in SMS Framework 8

Same name and namespace in other branches
  1. 2.x modules/sms_user/src/AccountRegistration.php \Drupal\sms_user\AccountRegistration::__construct()
  2. 2.1.x modules/sms_user/src/AccountRegistration.php \Drupal\sms_user\AccountRegistration::__construct()

Constructs a AccountRegistration object.

Parameters

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

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

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

\Drupal\sms\Provider\PhoneNumberVerificationInterface $phone_number_verification_provider: The phone number verification provider.

File

modules/sms_user/src/AccountRegistration.php, line 70

Class

AccountRegistration
Defines the account registration service.

Namespace

Drupal\sms_user

Code

public function __construct(ConfigFactoryInterface $config_factory, Token $token, SmsProviderInterface $sms_provider, PhoneNumberVerificationInterface $phone_number_verification_provider) {
  $this->configFactory = $config_factory;
  $this->token = $token;
  $this->smsProvider = $sms_provider;
  $this->phoneNumberVerificationProvider = $phone_number_verification_provider;
}