public function jobProceduralAction()
{
$status = ["success" => true];
if ($this->getParam("type") == "files") {
Update::installData($this->getParam("revision"));
} elseif ($this->getParam("type") == "clearcache") {
\Pimcore\Cache::clearAll();
} elseif ($this->getParam("type") == "preupdate") {
$status = Update::executeScript($this->getParam("revision"), "preupdate");
} elseif ($this->getParam("type") == "postupdate") {
$status = Update::executeScript($this->getParam("revision"), "postupdate");
} elseif ($this->getParam("type") == "cleanup") {
Update::cleanup();
} elseif ($this->getParam("type") == "composer-dump-autoload") {
$status = Update::composerDumpAutoload();
}
// we use pure PHP here, otherwise this can cause issues with dependencies that changed during the update
header("Content-type: application/json");
echo json_encode($status);
exit;
}