Stand: SMTP-Test, Admin-Mail-Tab, Notifiable-Fix, Lazy-Quill

- Fix: Notifiable-Trait zum User-Model hinzugefuegt (behebt notify()-500er)
- Installer: SMTP-Verbindungstest mit EsmtpTransport + Ueberspringen-Link
- Admin: Neuer E-Mail-Tab mit SMTP-Konfiguration + Verbindungstest
- Admin: Lazy Quill-Initialisierung (nur sichtbare Locale wird geladen)
- Uebersetzungen: 17 neue Mail-Keys in allen 6 Sprachen

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Rhino
2026-03-02 07:30:37 +01:00
commit 2e24a40d68
9633 changed files with 1300799 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\VarDumper\Caster;
use Symfony\Component\VarDumper\Cloner\Stub;
/**
* @author Nicolas Grekas <p@tchwork.com>
* @author Alexandre Daubois <alex.daubois@gmail.com>
*
* @internal
*/
final class SocketCaster
{
public static function castSocket(\Socket $socket, array $a, Stub $stub, bool $isNested): array
{
socket_getsockname($socket, $addr, $port);
$info = stream_get_meta_data(socket_export_stream($socket));
if (\PHP_VERSION_ID >= 80300) {
$uri = ($info['uri'] ?? '//');
if (str_starts_with($uri, 'unix://')) {
$uri .= $addr;
} else {
$uri .= \sprintf(str_contains($addr, ':') ? '[%s]:%s' : '%s:%s', $addr, $port);
}
$a[Caster::PREFIX_VIRTUAL.'uri'] = $uri;
if (@socket_atmark($socket)) {
$a[Caster::PREFIX_VIRTUAL.'atmark'] = true;
}
}
$a += [
Caster::PREFIX_VIRTUAL.'timed_out' => $info['timed_out'],
Caster::PREFIX_VIRTUAL.'blocked' => $info['blocked'],
];
if (!$lastError = socket_last_error($socket)) {
return $a;
}
static $errors;
if (!$errors) {
$errors = get_defined_constants(true)['sockets'] ?? [];
$errors = array_flip(array_filter($errors, static fn ($k) => str_starts_with($k, 'SOCKET_E'), \ARRAY_FILTER_USE_KEY));
}
$a[Caster::PREFIX_VIRTUAL.'last_error'] = new ConstStub($errors[$lastError], socket_strerror($lastError));
return $a;
}
}