setInterval(24 * 60 * 60); $this->syncService = $syncService; $this->logger = $logger; } protected function run($argument) { $this->syncService->syncThemAll(function ($url, $ex) { if ($ex instanceof \Exception) { $this->logger->error("Error while syncing $url.", [ 'app' => 'fed-sync', 'exception' => $ex, ]); } }); } }