public function AkamaiPurger::__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.
Overrides PurgerBase::__construct
File
- src/
Plugin/ Purge/ Purger/ AkamaiPurger.php, line 78
Class
- AkamaiPurger
- Akamai 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) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->client = $akamai_client_factory
->get();
$this->akamaiClientConfig = $config
->get('akamai.settings');
$this->eventDispatcher = $event_dispatcher;
}