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(); if (!is_callable([$controller, $task])) { Message::enqueueMessage(__('This page doesn\'t exist', 'acychecker'), 'warning'); $task = $controller->defaultTask; Security::setVar('task', $task); } $controller->$task(); } }