You are here

public function State::__construct in CloudFlare 8

State constructor.

Parameters

\Drupal\Core\State\StateInterface $state: The drupal state service.

\Drupal\CloudFlare\CloudFlareTimestampInterface $timestamper: Cloudflare timestamp service.

File

src/State.php, line 40

Class

State
Tracks rate limits associated with CloudFlare Api.

Namespace

Drupal\cloudflare

Code

public function __construct(StateInterface $state, CloudFlareTimestampInterface $timestamper) {
  $this->state = $state;
  $this->timestamper = $timestamper;
}