- 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>
44 lines
1.0 KiB
PHP
Executable File
44 lines
1.0 KiB
PHP
Executable File
<?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;
|
|
|
|
/**
|
|
* Casts Fiber related classes to array representation.
|
|
*
|
|
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
|
*/
|
|
final class FiberCaster
|
|
{
|
|
public static function castFiber(\Fiber $fiber, array $a, Stub $stub, bool $isNested, int $filter = 0): array
|
|
{
|
|
$prefix = Caster::PREFIX_VIRTUAL;
|
|
|
|
if ($fiber->isTerminated()) {
|
|
$status = 'terminated';
|
|
} elseif ($fiber->isRunning()) {
|
|
$status = 'running';
|
|
} elseif ($fiber->isSuspended()) {
|
|
$status = 'suspended';
|
|
} elseif ($fiber->isStarted()) {
|
|
$status = 'started';
|
|
} else {
|
|
$status = 'not started';
|
|
}
|
|
|
|
$a[$prefix.'status'] = $status;
|
|
|
|
return $a;
|
|
}
|
|
}
|