/** * * @access protected * @param \CCDNForum\ForumBundle\Entity\Category $category */ protected function onSuccess(Category $category) { $this->dispatcher->dispatch(ForumEvents::ADMIN_CATEGORY_EDIT_SUCCESS, new AdminCategoryEvent($this->request, $category)); $this->categoryModel->updateCategory($category); $this->dispatcher->dispatch(ForumEvents::ADMIN_CATEGORY_EDIT_COMPLETE, new AdminCategoryEvent($this->request, $category)); }