ModuleRegistry
final class \
Internal
Always use the ModuleProvider API to access modules
Table of Contents
Methods
- __construct() : mixed
- getModule() : ModuleInterface
- getModuleAliases() : array
- getModules() : ModuleInterface[]
- hasModule() : bool
- registerRoutesForModules() : void
- Handle router configuration when the router is set up.
Methods
__construct()
public
__construct(ModuleInterface[] $modules) : mixed
Parameters
- $modules : ModuleInterface[]
getModule()
public
getModule(string $identifier) : ModuleInterface
Parameters
- $identifier : string
Return values
ModuleInterfacegetModuleAliases()
public
getModuleAliases() : array
Return values
arraygetModules()
public
getModules() : ModuleInterface[]
Return values
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