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,22 @@
```` php
// Im ErrorHandler wird jetzt ErrorHandlerContext verwendet
private function createErrorContext(Throwable $exception, ?MiddlewareContext $context = null): ErrorContext
{
$handlerContext = ErrorHandlerContext::fromException($exception, [
'request_id' => $context?->requestId ?? $this->requestIdGenerator->generate(),
'timestamp' => date('c'),
'environment' => $_ENV['APP_ENV'] ?? 'production',
'debug_mode' => $this->isDebugMode
]);
return new ErrorContext(
exception: $exception,
level: $this->determineErrorLevel($exception),
requestId: $context?->requestId ?? $this->requestIdGenerator->generate(),
context: $handlerContext, // Jetzt ErrorHandlerContext statt ExceptionContext
additionalData: [
'memory_usage' => memory_get_peak_usage(true),
]
);
}
````