You are here

final public function AcquiaPlatformCdnPurger::__construct in Acquia Purge 8

Constructs a AcquiaCdnPurger object.

Parameters

\Drupal\acquia_purge\AcquiaCloud\PlatformInfoInterface $acquia_purge_platforminfo: Information object interfacing with the Acquia platform.

\GuzzleHttp\ClientInterface $http_client: An HTTP client that can perform remote requests.

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.

Overrides PurgerBase::__construct

File

src/Plugin/Purge/Purger/AcquiaPlatformCdnPurger.php, line 63

Class

AcquiaPlatformCdnPurger
Acquia Platform CDN (beta).

Namespace

Drupal\acquia_purge\Plugin\Purge\Purger

Code

public final function __construct(PlatformInfoInterface $acquia_purge_platforminfo, ClientInterface $http_client, array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->platformInfo = $acquia_purge_platforminfo;
  $this->httpClient = $http_client;
}