Enable Discovery debug logging for production troubleshooting

- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
2025-08-11 20:13:26 +02:00
parent 59fd3dd3b1
commit 55a330b223
3683 changed files with 2956207 additions and 16948 deletions

View File

@@ -1,14 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Framework\QueryBus;
use App\Framework\Core\AttributeMapper;
use ReflectionClass;
use ReflectionMethod;
use App\Framework\Reflection\WrappedReflectionClass;
use App\Framework\Reflection\WrappedReflectionMethod;
/**
* Mapper für das EventHandler-Attribut
* Mapper für das QueryHandler-Attribut
*/
final class QueryHandlerMapper implements AttributeMapper
{
@@ -22,14 +23,10 @@ final class QueryHandlerMapper implements AttributeMapper
/**
* Implementiert die map-Methode aus dem AttributeMapper-Interface
*
* @param object $reflectionTarget Das Reflektionsobjekt (ReflectionClass|ReflectionMethod)
* @param object $attributeInstance Die Attributinstanz
* @return array|null Die Attributdaten oder null, wenn nicht verarbeitet werden kann
*/
public function map(object $reflectionTarget, object $attributeInstance): ?array
public function map(WrappedReflectionClass|WrappedReflectionMethod $reflectionTarget, object $attributeInstance): ?array
{
if (!($reflectionTarget instanceof ReflectionMethod)) {
if (! ($reflectionTarget instanceof WrappedReflectionMethod)) {
return null;
}
@@ -41,19 +38,19 @@ final class QueryHandlerMapper implements AttributeMapper
}
$eventType = $parameters[0]->getType();
if (!$eventType || $eventType->isBuiltin()) {
if (! $eventType || $eventType->isBuiltin()) {
return null;
}
$eventClassName = $eventType->getName();
return [
'class' => $reflectionTarget->getDeclaringClass()->getName(),
'class' => $reflectionTarget->getDeclaringClass()->getFullyQualified(),
'method' => $reflectionTarget->getName(),
'event_class' => $eventClassName,
'attribute_data' => [
'priority' => $attributeInstance->priority ?? 0,
'stopPropagation' => $attributeInstance->stopPropagation ?? false
'stopPropagation' => $attributeInstance->stopPropagation ?? false,
],
];
}