public function updateTaskDescription(ChangeTaskDescription $request, $taskListId, $taskId)
 {
     // Update task description using command and service to handle this.
     // Normally this would be on a command bus and split across a couple of different serivces etc.
     // A writing service and a reading service
     $command = new ChangeTaskDescriptionCommand(TaskListId::fromString($taskListId), TaskId::fromString($taskId), $request->get('description'));
     $this->taskListService->handleChangeTaskDescription($command);
     return redirect()->route('lists.show', (string) $taskListId);
 }
 /**
  * {@inheritDoc}
  */
 public static function deserialize($aggregateId, array $data)
 {
     $taskListId = TaskListId::fromString($aggregateId);
     $taskId = TaskId::fromString($data['taskId']);
     return new static($taskListId, $taskId, $data['taskDescription'], $data['taskPriority']);
 }