/** * @return void */ public function indexAction() { $this->view->assign('authors', $this->authorRepository->findAll()); }
/** * @param \WE\Classwork\Domain\Model\Post $post * @return void */ public function editAction(Post $post) { $this->view->assign('post', $post); $this->view->assign('listCategory', $this->categoryRepository->findAll()); $this->view->assign('listAuthor', $this->authorRepository->findAll()); }