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

@@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
namespace App\Framework\Discovery\Contracts;
use App\Framework\Core\ValueObjects\ClassName;
use App\Framework\Discovery\ValueObjects\FileContext;
use App\Framework\Filesystem\File;
/**
* Base contract for all discovery visitors
*/
interface DiscoveryVisitor
{
/**
* Get the visitor type identifier
*/
public function getType(): string;
/**
* Visit a file for discovery
*/
public function visitFile(File $file, FileContext $context): void;
/**
* Visit a class within a file
*/
public function visitClass(ClassName $className, FileContext $context): void;
/**
* Check if this visitor should process the given file
*/
public function shouldProcessFile(File $file): bool;
/**
* Reset visitor state
*/
public function reset(): void;
}