Altax\Module\Task\Resource\DefinedTask::getAfterTasks PHP Method

getAfterTasks() public method

public getAfterTasks ( )
    public function getAfterTasks()
    {
        $tasks = array();
        foreach ($this->afterTaskNames as $taskName) {
            $task = $this->container->get("tasks/" . $taskName, null);
            if (!$task) {
                throw new \RuntimeException("Registered after task '{$taskName}' is not found.");
            }
            $tasks[] = $task;
        }
        return $tasks;
    }