You are here

public function RequestVerificationCodeResource::__construct in Mobile Number 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/rest/resource/RequestVerificationCodeResource.php \Drupal\mobile_number\Plugin\rest\resource\RequestVerificationCodeResource::__construct()

Constructs a Drupal\rest\Plugin\ResourceBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

array $serializer_formats: The available serialization formats.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\Core\Session\AccountProxyInterface $current_user: A current user instance.

\Drupal\mobile_number\MobileNumberUtilInterface $util: Mobile number utility service.

Overrides ResourceBase::__construct

File

src/Plugin/rest/resource/RequestVerificationCodeResource.php, line 60

Class

RequestVerificationCodeResource
Request verification code resource.

Namespace

Drupal\mobile_number\Plugin\rest\resource

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, array $serializer_formats, LoggerInterface $logger, AccountProxyInterface $current_user, MobileNumberUtilInterface $util) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $serializer_formats, $logger);
  $this->currentUser = $current_user;
  $this->util = $util;
}