/** * CRON - every 30 minutes * get one user created DownloadRequest for google, and process it * * @throws \Nette\Application\AbortException */ public function renderProcessGoogleRequest() { $this->googleDownload->setWifiManager($this->wifiManager); $req = $this->downloadRequest->getEldestDownloadRequest(Service\GoogleDownload::ID_SOURCE); if ($req) { $coords = new Coords($req->lat_start, $req->lat_end, $req->lon_start, $req->lon_end); $totalCount = $this->googleDownload->createRequestFromArea($coords); $this->downloadRequest->setProcessed($req, $totalCount); } $this->terminate(); }