/** * @param Tag $tag * @return void */ public function updateTagAction(Tag $tag) { $this->tagRepository->update($tag); $this->addFlashMessage('tagHasBeenUpdated', '', Message::SEVERITY_OK, [htmlspecialchars($tag->getLabel())]); $this->redirect('index'); }
/** * @param Tag $tag * @return void */ public function updateTagAction(Tag $tag) { $this->tagRepository->update($tag); $this->addFlashMessage(sprintf('Tag "%s" has been updated.', $tag->getLabel())); $this->redirect('index'); }