Files
michaelschiemer/src/Framework/Discovery/Events/DiscoveryStartedEvent.php
Michael Schiemer 55a330b223 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
2025-08-11 20:13:26 +02:00

34 lines
828 B
PHP

<?php
declare(strict_types=1);
namespace App\Framework\Discovery\Events;
use App\Framework\Core\ValueObjects\Timestamp;
use App\Framework\Discovery\ValueObjects\ScanType;
/**
* Event fired when discovery process starts
*/
final readonly class DiscoveryStartedEvent
{
public function __construct(
public int $estimatedFiles,
public array $directories,
public ScanType $scanType,
public Timestamp $timestamp
) {
}
public function toArray(): array
{
return [
'estimated_files' => $this->estimatedFiles,
'directories' => $this->directories,
'scan_type' => $this->scanType->value,
'scan_type_description' => $this->scanType->getDescription(),
'timestamp' => $this->timestamp->toFloat(),
];
}
}