websign-dev/sillbeam-core · v0.3.0

ModuleRegistryInterface

\Sillbeam\Core\Module · interface

Type information

\Sillbeam\Core\Module\ModuleRegistryInterface

Reads the compiled module catalog and activation graphs without scanning source files.

Methods (5)

active()

\Sillbeam\Core\Module\ModuleRegistryInterface::active()

Returns the union of application and Project graphs, keyed uniquely by descriptor class.

public function active(): array;

all()

\Sillbeam\Core\Module\ModuleRegistryInterface::all()

Returns the complete discovered catalog, including disabled and inactive modules.

public function all(): array;

forApplication()

\Sillbeam\Core\Module\ModuleRegistryInterface::forApplication()

Returns the active application graph; empty when Projects are configured.

public function forApplication(): array;

forProject()

\Sillbeam\Core\Module\ModuleRegistryInterface::forProject()

Returns the compiled dependency closure for a Project descriptor class.

Includes selected shared modules and enabled private modules. Accepts classes, not IDs.

public function forProject(string $project): array;

get()

\Sillbeam\Core\Module\ModuleRegistryInterface::get()

Looks up a descriptor class, independently of activation.

public function get(string $class): ModuleDefinition;