コード例 #1
0
 public function handle($command)
 {
     $thread = $this->forum->deleteThread($command->thread);
     $this->repository->delete($thread);
     $this->dispatcher->dispatch($this->forum->releaseEvents());
     return $thread;
 }
コード例 #2
0
 public function handle($command)
 {
     $thread = $this->forum->markThreadUnsolved($command->thread);
     $this->repository->save($thread);
     $this->dispatcher->dispatch($this->forum->releaseEvents());
     return $thread;
 }
コード例 #3
0
 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;
 }