Esempio n. 1
0
 /**
  * @param \SKL\Post\Domain\Model\Post $post
  * @return void
  */
 public function editAction(Post $post)
 {
     $account = $this->securityContext->getAccount();
     $this->view->assign('usrname', $account->getAccountIdentifier());
     $this->view->assign('post', $post);
     $this->view->assign('listCategories', $this->categoryRepository->findAll());
     $this->view->assign('listAuthor', $this->authorRepository->findAll());
 }
 /**
  * @param \SKL\Post\Domain\Model\Post $post
  * @return void
  */
 public function editAction(Post $post)
 {
     $this->view->assign('post', $post);
     $this->view->assign('listCategories', $this->categoryRepository->findAll());
     $this->view->assign('listAuthor', $this->authorRepository->findAll());
 }
 /**
  * @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');
 }