Elgg  Version master
CronHandler.php
Go to the documentation of this file.
1 <?php
2 
4 
11 class CronHandler {
12 
20  public function __invoke(\Elgg\Event $event): void {
21  $time = (int) $event->getParam('time');
22  $interval = $event->getType();
23 
24  _elgg_services()->delayedEmailService->processQueuedNotifications($interval, $time);
25  }
26 }
if(! $annotation instanceof ElggAnnotation) $time
Definition: time.php:20
getType()
Return a type of extension.
Cron based handing of the delayed email notification queue.
Definition: CronHandler.php:11
__invoke(\Elgg\Event $event)
Cron handler to dequeue en handle delayed emails.
Definition: CronHandler.php:20
Models an event passed to event handlers.
Definition: Event.php:11
_elgg_services()
Get the global service provider.
Definition: elgglib.php:353