You are here

final public function RecommendationsCheck::__construct in Acquia Purge 8

Constructs a RecommendationsCheck object.

Parameters

string $root: The app root.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\purge\Plugin\Purge\Processor\ProcessorsServiceInterface $purge_processors: The purge processors service.

\Drupal\purge\Plugin\Purge\Queuer\QueuersServiceInterface $purge_queuers: The purge queuers service.

\Drupal\purge\Plugin\Purge\Purger\PurgersServiceInterface $purge_purgers: The purge purgers service.

\Drupal\Core\Site\Settings $settings: Drupal site settings object.

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 PluginBase::__construct

File

src/Plugin/Purge/DiagnosticCheck/RecommendationsCheck.php, line 111

Class

RecommendationsCheck
Acquia Purge Recommendations.

Namespace

Drupal\acquia_purge\Plugin\Purge\DiagnosticCheck

Code

public final function __construct($root, CacheBackendInterface $cache_backend, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, ProcessorsServiceInterface $purge_processors, QueuersServiceInterface $purge_queuers, PurgersServiceInterface $purge_purgers, Settings $settings, array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->cache = $cache_backend;
  $this->configFactory = $config_factory;
  $this->htaccess = $root . '/.htaccess';
  $this->moduleHandler = $module_handler;
  $this->purgeProcessors = $purge_processors;
  $this->purgeQueuers = $purge_queuers;
  $this->purgePurgers = $purge_purgers;
  $this->settings = $settings;
}