public function updateAction(Asset $asset) { $this->assetRepository->update($asset); $this->addFlashMessage('assetHasBeenUpdated', '', Message::SEVERITY_OK, [htmlspecialchars($asset->getLabel())]); $this->redirect('index'); }