Elgg  Version 6.1
ProcessQueueCronHandler.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Notifications;
4 
11 
19  public function __invoke(\Elgg\Event $event) {
20  // calculate when we should stop
21  $stop_time = $event->getParam('time') + (int) elgg_get_config('notifications_max_runtime');
22  _elgg_services()->notifications->processQueue($stop_time);
23  }
24 }
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
__invoke(\Elgg\Event $event)
Process notification queue.
_elgg_services()
Get the global service provider.
Definition: elgglib.php:353
Models an event passed to event handlers.
Definition: Event.php:11