/** * @param int $articleId */ public function handleDelete($articleId) { $article = $this->getItem($articleId, $this->articleRepository); if (!$article) { $this->throw404(); } $this->articleRepository->delete($article); $this->flashWithRedirect($this->translator->translate('locale.item.deleted')); }