You are here

public function ApiRateLimitCheck::__construct in CloudFlare 8

Constructs a ApiRateLimitCheck diagnostic check 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.

\Drupal\cloudflare\CloudFlareStateInterface $state: Tracks rate limits associated with CloudFlare Api.

\Drupal\cloudflare\CloudFlareComposerDependenciesCheckInterface $check_interface: Checks that the composer dependencies for CloudFlare are met.

Overrides PluginBase::__construct

File

modules/cloudflarepurger/src/Plugin/Purge/DiagnosticCheck/ApiRateLimitCheck.php, line 57

Class

ApiRateLimitCheck
Checks that the site is within CloudFlare's API rate limits.

Namespace

Drupal\cloudflarepurger\Plugin\Purge\DiagnosticCheck

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CloudFlareStateInterface $state, CloudFlareComposerDependenciesCheckInterface $check_interface) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->state = $state;
  $this->cloudFlareComposerDependenciesCheck = $check_interface;
}