/** * @param \SKL\Post\Domain\Model\Author $author * @return void */ public function deleteAction(Author $author) { $this->authorRepository->remove($author); $this->addFlashMessage('Deleted a author.'); $this->redirect('index'); }