Files
michaelschiemer/src/Framework/Discovery/Contracts/DiscoveryVisitor.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

41 lines
861 B
PHP

<?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;
}