Modules
in package
Modules service locator
Table of Contents
Properties
- $cache : CacheInterface
- Cache
Methods
- __construct() : mixed
- Constructor
- create() : ModuleInterface|null
- Create module instance
- hasModule() : bool
- Return true if module installed
- getConfig() : array<string|int, mixed>|null
- Load module config
Properties
$cache
Cache
private
CacheInterface
$cache
Methods
__construct()
Constructor
public
__construct(CacheInterface $cache) : mixed
Parameters
- $cache : CacheInterface
create()
Create module instance
public
create(string $name) : ModuleInterface|null
Parameters
- $name : string
Return values
ModuleInterface|nullhasModule()
Return true if module installed
public
hasModule(string $name) : bool
Parameters
- $name : string
Return values
boolgetConfig()
Load module config
protected
getConfig(string $moduleName) : array<string|int, mixed>|null
Parameters
- $moduleName : string