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;
}