aircraftSvc = $aircraftSvc; $this->userSvc = $userSvc; } /** * Recalculate the stats for active users * * @param CronNightly $event * * @throws \UnexpectedValueException * @throws \InvalidArgumentException */ public function handle(CronNightly $event): void { Log::info('Nightly: Recalculating user stats'); $this->userSvc->recalculateAllUserStats(); Log::info('Nightly: Recalcuating aircraft status'); $this->aircraftSvc->recalculateStats(); } }