defaultTask); Security::setVar('task', $task); } // In case the API failed to send the results to the callback url, we check for the results after a day $routineService = new RoutineService(); $routineService->checkLostResults(); $controller->call($task); } }