ModuleRegistry
FinalYes
Always use the ModuleProvider API to access modules
Table of Contents
Methods
- __construct() : mixed
- getModule() : ModuleInterface
- getModuleAliases() : array<string|int, mixed>
- getModules() : array<string|int, ModuleInterface>
- hasModule() : bool
- registerRoutesForModules() : void
- Needs to be called when the router is set up, AFTER all modules are loaded.
Methods
__construct()
public
__construct(array<string|int, ModuleInterface> $modules) : mixed
Parameters
- $modules : array<string|int, ModuleInterface>
getModule()
public
getModule(string $identifier) : ModuleInterface
Parameters
- $identifier : string
Return values
ModuleInterfacegetModuleAliases()
public
getModuleAliases() : array<string|int, mixed>
Return values
array<string|int, mixed>getModules()
public
getModules() : array<string|int, ModuleInterface>
Return values
array<string|int, ModuleInterface>hasModule()
public
hasModule(string $identifier) : bool
Parameters
- $identifier : string
Return values
boolregisterRoutesForModules()
Needs to be called when the router is set up, AFTER all modules are loaded.
public
registerRoutesForModules(Router $router) : void
Parameters
- $router : Router