Skip to content

Commit

Permalink
ref: revision.json.twig has been replaced by FlashMessageLogger::buil…
Browse files Browse the repository at this point in the history
…dJsonResponse
  • Loading branch information
theus77 committed Feb 22, 2024
1 parent 5f305e5 commit 39a3b98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ public function get(string $ouuid, string $name): Response
]);
}

return $this->render("@$this->templateNamespace/ajax/revision.json.twig", [
return $this->flashMessageLogger->buildJsonResponse([
'success' => false,
'ouuid' => $ouuid,
'type' => $contentType->getName(),
]);
}

return $this->render("@$this->templateNamespace/ajax/revision.json.twig", [
'success' => true,
'revision' => $revision->getRawData(),
'ouuid' => $revision->getOuuid(),
'id' => $revision->getId(),
return $this->flashMessageLogger->buildJsonResponse([
'success' => true,
'revision' => $revision->getRawData(),
'ouuid' => $revision->getOuuid(),
'id' => $revision->getId(),
]);
}

Expand Down
10 changes: 0 additions & 10 deletions EMS/core-bundle/src/Resources/views/ajax/revision.json.twig

This file was deleted.

0 comments on commit 39a3b98

Please sign in to comment.