Skip to contentwebsign-dev/sillbeam-core · v0.3.0
ModuleRegistryInterface
\Sillbeam\Core\Module · interface
Methods (5)
\Sillbeam\Core\Module\ModuleRegistryInterface::active()Returns the union of application and Project graphs, keyed uniquely by descriptor class.
public function active(): array;
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Module\ModuleRegistryInterface
- PHPDoc metadata
- Name
- return
- Type
- array<class-string,\Sillbeam\Core\Module\ModuleDefinition>
- Visibility
- public
- Return value
- Type
- array<class-string,\Sillbeam\Core\Module\ModuleDefinition>
- abstract
- No
- final
- No
- static
- No
\Sillbeam\Core\Module\ModuleRegistryInterface::all()Returns the complete discovered catalog, including disabled and inactive modules.
public function all(): array;
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Module\ModuleRegistryInterface
- PHPDoc metadata
- Name
- return
- Type
- array<class-string,\Sillbeam\Core\Module\ModuleDefinition>
- Visibility
- public
- Return value
- Type
- array<class-string,\Sillbeam\Core\Module\ModuleDefinition>
- abstract
- No
- final
- No
- static
- No
\Sillbeam\Core\Module\ModuleRegistryInterface::forApplication()Returns the active application graph; empty when Projects are configured.
public function forApplication(): array;
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Module\ModuleRegistryInterface
- PHPDoc metadata
- Name
- return
- Type
- array<class-string,\Sillbeam\Core\Module\ModuleDefinition>
- Visibility
- public
- Return value
- Type
- array<class-string,\Sillbeam\Core\Module\ModuleDefinition>
- abstract
- No
- final
- No
- static
- No
\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;
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Module\ModuleRegistryInterface
- PHPDoc metadata
- Name
- param
- Type
- class-string
- Variable
- project
- Name
- return
- Type
- array<class-string,\Sillbeam\Core\Module\ModuleDefinition>
- Name
- throws
- Description
- if the Project class is unknown
- Type
- \OutOfBoundsException
- Visibility
- public
- Parameters
- Name
- project
- Type
- class-string
- By reference
- No
- Variadic
- No
- Return value
- Type
- array<class-string,\Sillbeam\Core\Module\ModuleDefinition>
- Exceptions
- Type
- \OutOfBoundsException
- Description
- if the Project class is unknown
- abstract
- No
- final
- No
- static
- No
\Sillbeam\Core\Module\ModuleRegistryInterface::get()Looks up a descriptor class, independently of activation.
public function get(string $class): ModuleDefinition;
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Module\ModuleRegistryInterface
- PHPDoc metadata
- Name
- param
- Type
- class-string
- Variable
- class
- Name
- throws
- Description
- if the descriptor class is unknown
- Type
- \OutOfBoundsException
- Visibility
- public
- Parameters
- Name
- class
- Type
- class-string
- By reference
- No
- Variadic
- No
- Return value
- Type
- \Sillbeam\Core\Module\ModuleDefinition
- Exceptions
- Type
- \OutOfBoundsException
- Description
- if the descriptor class is unknown
- abstract
- No
- final
- No
- static
- No