public function handle($command) { $thread = $this->forum->deleteThread($command->thread); $this->repository->delete($thread); $this->dispatcher->dispatch($this->forum->releaseEvents()); return $thread; }
public function handle($command) { $thread = $this->forum->markThreadUnsolved($command->thread); $this->repository->save($thread); $this->dispatcher->dispatch($this->forum->releaseEvents()); return $thread; }
public function handle($command) { $thread = $this->forum->updateThread($command->thread, $command->subject, $command->body, $command->author, $command->isQuestion, $command->laravelVersion, $command->tagIds); $this->repository->save($thread); $this->dispatcher->dispatch($this->forum->releaseEvents()); return $thread; }