/** * @return \Zend\Http\Response */ public function deleteAction() { $slug = $this->params('slug'); $this->postService->delete($slug); $this->flashMessenger()->setNamespace('sxblog_post')->addMessage($this->getMessage('post_deletion_success')); return $this->redirect()->toRoute($this->options->getRouteAfterPostDelete()); }