Public API
Query module assignments and the current Project context through public interfaces.
Overview
SillbeamCoreBundle: central Symfony entry point.Sillbeam\Core\Module\Attribute\SillbeamModule:id,description,dependencies.Sillbeam\Core\Project\Attribute\SillbeamProject:id,description,modules.ModuleRegistryInterface:all(),get(class),active(),forApplication(),forProject(class).ProjectRegistryInterface:all(),get(idOrClass)andforHost(host).ProjectContextInterface:current(),id(),is(id),hasModule(class).ModuleDefinition/ProjectDefinition: immutable catalog and activation data. Modules include declared/detected dependencies, reference evidence and activation reasons.Sillbeam\Core\Kernel\SillbeamKernel: optional kernel; the regular Symfony kernel remains supported.KernelInformationInterface: runtime data forsillbeam:about.
Discovery, compiler, AST index and native loaders are build implementation components. Use the documented registry and context contracts for application queries.
The full registry contract names are Sillbeam\Core\Module\ModuleRegistryInterface, Sillbeam\Core\Project\ProjectRegistryInterface and Sillbeam\Core\Project\ProjectContextInterface. Lists are arrays of definitions keyed by descriptor class. Module get() and forProject() expect descriptor classes rather than IDs; Project get() accepts an ID or class. Unknown targets throw OutOfBoundsException. active() combines the active graphs; forApplication() is empty in Project mode.
ModuleDefinition::enabled does not automatically mean active. Activity follows registry membership; there is no active property. isPrivate() checks Project ownership; key($projectId) needs the owner ID for private modules. ProjectDefinition::canonicalHost() returns the first host or null.
Technical reference: published Core tag v0.2.0, commit cf2f4102ad7c15db30ad5c5af21852bc2aaec99a in the Core repository. Historical verification records identify their own source snapshots separately. The unchanged contracts were checked against the published Core v0.3.0.
Analysis and reporting API
Sillbeam\Core\Architecture\ArchitectureAnalyzer::analyze() returns ArchitectureAnalysisResult. Its findings, references, applicationReferences, discovery and architecture are exposed immutably. isValid() means no findings; isComplete() means no fatal blocker. throwIfInvalid() throws ArchitectureValidationException with result. An invalid result exposes no runtime graph.
<?php
use Sillbeam\Core\Architecture\ArchitectureAnalyzer;
use Sillbeam\Core\Architecture\DiscoveryOptions;
$result = (new ArchitectureAnalyzer())->analyze(
new DiscoveryOptions($projectDir.'/src', 'App\\'),
['modules' => [], 'projects' => []],
);
foreach ($result->findings as $finding) {
$rule = $finding->rule;
$context = $finding->context;
}
$result->throwIfInvalid();Sillbeam\Core\Console\Application is the optional Console adapter. ArchitectureReport::fromAnalysis() builds the shared report data model; exitCode() and toJson() provide the documented CLI semantics. Compiler, mutable collector and native loaders are no substitute for a valid runtime graph.
PHPDoc and separate PHP API reference
Core v0.3.0 expands PHPDoc for public contracts and relevant implementation decisions. In the Core development checkout, composer docs:build generates HTML; composer docs:export-json manually exports English JSON v1 to build/docs/api/sillbeam-core.en.json. phpDocumentor is a development-only tool.
Export, translation and website import are manual. There is no automatic synchronization or publication. The handbook explains contracts; the separate bilingual PHP API reference provides signatures.
The published PHP API reference contains classes, interfaces, methods and properties in both languages.