public function BackendBase::__construct in Acquia Purge 8
Construct a vendor backend for the Platform CDN purger.
Parameters
array $config: Acquia Platform CDN configuration settings.
\Drupal\acquia_purge\AcquiaCloud\PlatformInfoInterface $acquia_purge_platforminfo: Information object interfacing with the Acquia platform.
\Drupal\purge\Logger\LoggerChannelPartInterface $logger: The logger passed to the Platform CDN purger.
\Drupal\acquia_purge\Plugin\Purge\Purger\DebuggerInterface $debugger: The centralized debugger for Acquia purger plugins.
\GuzzleHttp\ClientInterface $http_client: An HTTP client that can perform remote requests.
Overrides BackendInterface::__construct
1 call to BackendBase::__construct()
- FastlyBackend::__construct in src/
AcquiaPlatformCdn/ FastlyBackend.php - Construct a vendor backend for the Platform CDN purger.
1 method overrides BackendBase::__construct()
- FastlyBackend::__construct in src/
AcquiaPlatformCdn/ FastlyBackend.php - Construct a vendor backend for the Platform CDN purger.
File
- src/
AcquiaPlatformCdn/ BackendBase.php, line 44
Class
- BackendBase
- Provides a backend for the Platform CDN purger.
Namespace
Drupal\acquia_purge\AcquiaPlatformCdnCode
public function __construct(array $config, PlatformInfoInterface $acquia_purge_platforminfo, LoggerChannelPartInterface $logger, DebuggerInterface $debugger, ClientInterface $http_client) {
$this->platformInfo = $acquia_purge_platforminfo;
$this->httpClient = $http_client;
$this->logger = $logger;
$this->config = $config;
$this
->setDebugger($debugger);
}