You are here

interface CloudFlareComposerDependenciesCheckInterface in CloudFlare 8

Tests that Composer dependencies for CloudFlare are met.

Hierarchy

Expanded class hierarchy of CloudFlareComposerDependenciesCheckInterface

All classes that implement CloudFlareComposerDependenciesCheckInterface

6 files declare their use of CloudFlareComposerDependenciesCheckInterface
ApiRateLimitCheck.php in modules/cloudflarepurger/src/Plugin/Purge/DiagnosticCheck/ApiRateLimitCheck.php
CloudFlarePurger.php in modules/cloudflarepurger/src/Plugin/Purge/Purger/CloudFlarePurger.php
ComposerDependenciesCheck.php in modules/cloudflarepurger/src/Plugin/Purge/DiagnosticCheck/ComposerDependenciesCheck.php
ComposerDependenciesCheckMock.php in tests/modules/cloudflare_form_tester/src/Mocks/ComposerDependenciesCheckMock.php
SettingsForm.php in src/Form/SettingsForm.php

... See full list

File

src/CloudFlareComposerDependenciesCheckInterface.php, line 8

Namespace

Drupal\cloudflare
View source
interface CloudFlareComposerDependenciesCheckInterface {
  const ERROR_MESSAGE = "Missing Composer dependencies for CloudFlare. <br /> From the root of your site install composer dependencies by running `composer require d8-contrib-modules/cloudflarephpsdk \"1.0.0-alpha3\"`";

  /**
   * Tests that composer dependencies for CloudFlare are met.
   *
   * @return bool
   *   TRUE if composer dependencies are met. FALSE otherwise.
   */
  public function check();

  /**
   * Asserts that composer dependencies for CloudFlare are met.
   *
   * @throws \Drupal\cloudflare\Exception\ComposerDependencyException
   *   Exception thrown if composer dependencies are met.
   */
  public function assert();

}

Members

Namesort descending Modifiers Type Description Overrides
CloudFlareComposerDependenciesCheckInterface::assert public function Asserts that composer dependencies for CloudFlare are met. 2
CloudFlareComposerDependenciesCheckInterface::check public function Tests that composer dependencies for CloudFlare are met. 2
CloudFlareComposerDependenciesCheckInterface::ERROR_MESSAGE constant