public function AkamaiTagPurger::__construct in Akamai 8.3
Constructs a \Drupal\Component\Plugin\AkamaiPurger.
Parameters
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.
\Drupal\Core\Config\ConfigFactoryInterface $config: The factory for configuration objects.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\akamai\AkamaiClientFactory $akamai_client_factory: The akamai client factory.
\Psr\Log\LoggerInterface $logger: Logger interface.
Overrides PurgerBase::__construct
File
- src/
Plugin/ Purge/ Purger/ AkamaiTagPurger.php, line 89
Class
- AkamaiTagPurger
- Akamai Tag Purger.
Namespace
Drupal\akamai\Plugin\Purge\PurgerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config, EventDispatcherInterface $event_dispatcher, AkamaiClientFactory $akamai_client_factory, LoggerInterface $logger) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->client = $akamai_client_factory
->get();
$this->akamaiClientConfig = $config
->get('akamai.settings');
$this->eventDispatcher = $event_dispatcher;
$this->logger = $logger;
}