public function Progress::__construct in Ultimate Cron 8.2
Constructor.
Parameters
float $interval: How often the database should be updated with the progress.
File
- src/
Progress/ Progress.php, line 23
Class
Namespace
Drupal\ultimate_cron\ProgressCode
public function __construct(KeyValueFactoryInterface $key_value_factory, $interval = 1) {
$this->keyValue = $key_value_factory
->get('uc-progress');
$this->interval = $interval;
}