public function PurgersService::__construct in Purge 8.3
Construct the purgers service.
Parameters
\Drupal\Component\Plugin\PluginManagerInterface $pluginManager: The plugin manager for this service.
\Drupal\purge\Logger\LoggerServiceInterface $purge_logger: Logging services for the purge module and its submodules.
\Drupal\purge\Plugin\Purge\Purger\CapacityTrackerInterface $capacityTracker: The capacity tracker.
\Drupal\purge\Plugin\Purge\Purger\RuntimeMeasurementTrackerInterface $runtimeMeasurementTracker: The runtime measurement tracker.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.
\Drupal\purge\Plugin\Purge\DiagnosticCheck\DiagnosticsServiceInterface $purge_diagnostics: The diagnostics service.
File
- src/
Plugin/ Purge/ Purger/ PurgersService.php, line 132
Class
- PurgersService
- Provides the service that distributes access to one or more purgers.
Namespace
Drupal\purge\Plugin\Purge\PurgerCode
public function __construct(PluginManagerInterface $pluginManager, LoggerServiceInterface $purge_logger, CapacityTrackerInterface $capacityTracker, RuntimeMeasurementTrackerInterface $runtimeMeasurementTracker, ConfigFactoryInterface $config_factory, LockBackendInterface $lock, DiagnosticsServiceInterface $purge_diagnostics) {
$this->pluginManager = $pluginManager;
$this->purgeLogger = $purge_logger;
$this->capacityTracker = $capacityTracker;
$this->runtimeMeasurementTracker = $runtimeMeasurementTracker;
$this->configFactory = $config_factory;
$this->purgeDiagnostics = $purge_diagnostics;
$this->lock = $lock;
$this->logger = $this->purgeLogger
->get('purgers');
}