public function JobScheduler::__construct in Job Scheduler 8.2
Same name and namespace in other branches
- 8.3 src/JobScheduler.php \Drupal\job_scheduler\JobScheduler::__construct()
Constructs a object.
Parameters
\Drupal\job_scheduler\JobSchedulerCronTabDecoratorInterface $crontab_decorator: The job scheduler crontab decorator.
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
File
- src/
JobScheduler.php, line 44
Class
- JobScheduler
- Manage scheduled jobs.
Namespace
Drupal\job_schedulerCode
public function __construct(JobSchedulerCronTabDecoratorInterface $crontab_decorator, Connection $database, TimeInterface $time) {
$this->database = $database;
$this->time = $time;
$this->crontabDecorator = $crontab_decorator;
}