public function Cron::__construct in Commerce Recurring Framework 8
Constructs a new Cron object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\commerce_recurring\RecurringOrderManagerInterface $recurring_order_manager: The recurring order manager.
\Drupal\Component\Datetime\TimeInterface $time: The time.
File
- src/
Cron.php, line 46
Class
- Cron
- Default cron implementation.
Namespace
Drupal\commerce_recurringCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, RecurringOrderManagerInterface $recurring_order_manager, TimeInterface $time) {
$this->entityTypeManager = $entity_type_manager;
$this->recurringOrderManager = $recurring_order_manager;
$this->time = $time;
}