improve install loop

This commit is contained in:
Damodar Lohani
2025-10-16 02:07:17 +00:00
parent f062b39cfa
commit 4cb63068de
+2 -2
View File
@@ -150,6 +150,8 @@ class Install extends Action
$input = [];
$password = new Password();
$token = new Token();
foreach ($vars as $var) {
if (!empty($var['filter']) && ($interactive !== 'Y' || !Console::isInteractive())) {
if ($data && $var['default'] !== null) {
@@ -158,13 +160,11 @@ class Install extends Action
}
if ($var['filter'] === 'token') {
$token = new Token();
$input[$var['name']] = $token->generate();
continue;
}
if ($var['filter'] === 'password') {
$password = new Password();
$input[$var['name']] = $password->generate();
continue;
}