location_service = $location_service; } /** * Execute the console command. * * @return mixed */ public function handle() { $enabled = Config::get("bookable_rooms.enable_bookable_rooms_reservation_revocation", false); if(!$enabled){ $this->info("task is not enabled!"); return false; } try { $this->info("processing summit room reservations"); $start = time(); $lifetime = intval(Config::get("bookable_rooms.reservation_lifetime", 30)); Log::info(sprintf("SummitRoomReservationRevocationCommand: using lifetime of %s ", $lifetime)); $this->location_service->revokeBookableRoomsReservedOlderThanNMinutes($lifetime); $end = time(); $delta = $end - $start; $this->info(sprintf("execution call %s seconds", $delta)); } catch (Exception $ex) { Log::error($ex); } } }