private function assembleAuthor(Post $post) { $author = $this->authorService->show($post->getAuthor()->getId()); return ['name' => $author->getName()]; }