/** * @param \SKL\Post\Domain\Model\Author $newAuthor * @return void */ public function createAction(Author $newAuthor) { $this->authorRepository->add($newAuthor); $this->addFlashMessage('Created a new author.'); $this->redirect('index'); }