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
- Handle router configuration when the router is set up.
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()
Handle router configuration when the router is set up.
public
registerRoutesForModules(RouterConfigurationEvent $event) : void
The event registration is wired in TYPO3\CMS\Backend\ServiceProvider::addEventListeners
instead of using an AsEventListener because this service is not autowired, but has a
custom factory in TYPO3\CMS\Backend\ServiceProvider.
Parameters
- $event : RouterConfigurationEvent