websign-dev/sillbeam-core · v0.3.0
ArchitectureAnalyzer
\Sillbeam\Core\Architecture · class
Type information
\Sillbeam\Core\Architecture\ArchitectureAnalyzerContainer-independent entry point for source discovery, graph validation and static dependency analysis.
Expected source and architecture failures become structured findings. Application descriptor code may execute during discovery; arbitrary application exceptions and programming errors propagate.
Methods (2)
__construct()
\Sillbeam\Core\Architecture\ArchitectureAnalyzer::__construct()Optionally reuses a build-scoped source index; the default creates a fresh index per analyze() call.
public function __construct(private readonly ?SourceInspector $inspector = null)analyze()
\Sillbeam\Core\Architecture\ArchitectureAnalyzer::analyze()Reads configured source roots, instantiates descriptors and collects available findings.
Returns structured expected validation failures rather than throwing them. Unexpected application exceptions propagate; option/configuration resolution happens before this call. Does not compile a Symfony container, activate services or write source files.
public function analyze(DiscoveryOptions $options, array $config = []): ArchitectureAnalysisResult