userSvc = $userService; } /** * Recalculate the stats for active users * * @param CronNightly $event * * @throws \UnexpectedValueException * @throws \InvalidArgumentException */ public function handle(CronNightly $event): void { Log::info('Recalculating balances'); $this->userSvc->recalculateAllUserStats(); Log::info('Done recalculating stats'); } }