You are here

public function ReadinessValidationManager::__construct in Automatic Updates 8.2

Constructs a ReadinessValidationManager.

Parameters

\Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface $key_value_expirable_factory: The key/value expirable factory.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\automatic_updates\PathLocator $path_locator: The path locator service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher service.

int $results_time_to_live: The number of hours to store results.

File

src/Validation/ReadinessValidationManager.php, line 68

Class

ReadinessValidationManager
Defines a manager to run readiness validation.

Namespace

Drupal\automatic_updates\Validation

Code

public function __construct(KeyValueExpirableFactoryInterface $key_value_expirable_factory, TimeInterface $time, PathLocator $path_locator, EventDispatcherInterface $dispatcher, int $results_time_to_live) {
  $this->keyValueExpirable = $key_value_expirable_factory
    ->get('automatic_updates');
  $this->time = $time;
  $this->pathLocator = $path_locator;
  $this->eventDispatcher = $dispatcher;
  $this->resultsTimeToLive = $results_time_to_live;
}