feat(settings): add menu/show_to_user and public get_settings for client apps

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-24 15:32:35 +03:30
co-authored by Cursor
parent 5c542e2733
commit b28a98938e
9 changed files with 321 additions and 44 deletions
@@ -65,6 +65,14 @@ class DeploySettingsConstCommand extends Command
return self::FAILURE;
}
$extraPath = database_path('sql/settings_menu_and_show_to_user.sql');
if (is_file($extraPath)) {
$extraSql = file_get_contents($extraPath);
if ($extraSql !== false && trim($extraSql) !== '') {
$sql .= "\n".$extraSql;
}
}
foreach ($databases as $db) {
$db = trim((string) $db);
if ($db === '') {