chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
namespace Archive\Async1;
use App\Framework\Async1\TaskProcessor;
final class SynchronousTaskProcessor implements TaskProcessor
{
/**
* {@inheritdoc}
*/
public function processTasks(array $tasks, mixed ...$sharedData): array
{
$results = [];
foreach ($tasks as $index => $task) {
try {
$results[$index] = $task(...$sharedData);
} catch (\Throwable $e) {
error_log("Fehler bei Task #{$index}: " . $e->getMessage());
$results[$index] = null;
}
}
return $results;
}
/**
* {@inheritdoc}
*/
public static function isAvailable(): bool
{
return true; // Immer verfügbar
}
}