transfer code from update controller to updater class

This commit is contained in:
jayvirsinh_gohil
2020-11-03 12:19:51 +05:30
parent 0db9f9df0c
commit 5d4ea2a308
2 changed files with 13 additions and 11 deletions

View File

@ -88,16 +88,6 @@ class UpdateController extends Controller
$json = Updater::checkForUpdate(Setting::getSetting('version'));
if ($json->success) {
$extensions = $json->version->extensions;
$data = [];
foreach ($extensions as $extension) {
$data[$extension] = phpversion($extension);
}
$data['php'] = phpversion();
$json->version->extensions = $data;
}
return response()->json($json);
}
}