You are here

public function CronRunner::__construct in CiviCRM Cron 8

CronRunner constructor.

Parameters

\Drupal\civicrm\Civicrm $civicrm: CiviCRM service.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory service.

\GuzzleHttp\ClientInterface $client: HTTP client service.

File

src/CronRunner.php, line 49

Class

CronRunner
Class CronRunner.

Namespace

Drupal\civicrm_cron

Code

public function __construct(Civicrm $civicrm, ConfigFactoryInterface $configFactory, ClientInterface $client) {
  $this->config = $configFactory
    ->get('civicrm_cron.settings');
  $this->client = $client;
}