avatar generator
All checks were successful
Deploy / deploy (push) Successful in 1m39s

This commit is contained in:
2026-07-27 01:36:24 +02:00
parent e274e07f45
commit 708830fe0a
11 changed files with 26 additions and 18 deletions

View File

@@ -3,6 +3,8 @@ declare(strict_types=1);
namespace App;
use App\Avatar\Lorelei;
final class AccountPages
{
public static function register(App $app): array
@@ -363,7 +365,7 @@ final class AccountPages
$profile['contact_phone'] = $crypto->decrypt((string)$profile['contact_phone']) ?: '';
}
}
$profile = array_merge($profile, Avatar::normalize($profile));
$profile = array_merge($profile, Lorelei::normalize($profile));
$children = [];
$stmt = $pdo?->prepare('SELECT id, encrypted_first_name AS first_name, note, gender, birthdate, age_years FROM children WHERE user_id = :id ORDER BY id DESC');
@@ -420,7 +422,7 @@ final class AccountPages
if (!in_array($section, $allowedSections, true)) {
$section = 'profile';
}
$avatarPresetOptions = Avatar::seedChoices((string)$profile['avatar_preset']);
$avatarPresetOptions = Lorelei::seedChoices((string)$profile['avatar_preset']);
return compact(
'flash',