You are here

public function ComposerDependenciesCheck::assert in CloudFlare 8

Asserts that composer dependencies for CloudFlare are met.

Throws

\Drupal\cloudflare\Exception\ComposerDependencyException Exception thrown if composer dependencies are met.

Overrides CloudFlareComposerDependenciesCheckInterface::assert

File

src/ComposerDependenciesCheck.php, line 71

Class

ComposerDependenciesCheck
Tests that composer dependencies are met.

Namespace

Drupal\cloudflare

Code

public function assert() {
  if (!$this
    ->check()) {
    throw new ComposerDependencyException(self::ERROR_MESSAGE);
  }
}