You are here

public function ZoneMock::__construct in CloudFlare 8

Zone constructor.

Parameters

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

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

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

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

File

tests/modules/cloudflare_form_tester/src/Mocks/ZoneMock.php, line 96

Class

ZoneMock
Zone methods for CloudFlare.

Namespace

Drupal\cloudflare_form_tester\Mocks

Code

public function __construct(ConfigFactoryInterface $config_factory, LoggerInterface $logger, CloudFlareStateInterface $state, CloudFlareComposerDependenciesCheckInterface $check_interface) {
  $this->config = $config_factory
    ->get('cloudflare.settings');
  $this->logger = $logger;
  $this->state = $state;
  $this->zone = $this->config
    ->get('zone');
  $this->validCredentials = $this->config
    ->get('valid_credentials');
  $this->cloudFlareComposerDependenciesCheck = $check_interface;
}