public function updateTagAction(Tag $tag) { $this->tagRepository->update($tag); $this->addFlashMessage('tagHasBeenUpdated', '', Message::SEVERITY_OK, [htmlspecialchars($tag->getLabel())]); $this->redirect('index'); }