/** * Entry point for the back ground worker */ public static function run() { $notifications = new Notifications(); $subscriptions = new Subscriptions(); $cron = new Cron($notifications, $subscriptions); $cron->pushNotifications(); }