Modules
class Modules
The module registry service.
Properties
protected array | $viewMixins | The view mixins of every module for every view. |
|
protected array | $controllerMixins | The controller mixins of every module. |
|
protected array | $apidocPaths | Additional source paths to generate the API documentation from. |
Methods
Create a new instance.
Register module assets in one step.
Registers a new view mixin of a module for a view.
Returns all mixins for a view that were registered by modules.
Registers a new controller mixin of a module.
Returns all mixins for a controller that were registered by modules.
Call all controller mixins registered for a certain controller.
Returns information about all installed BIIGLE modules
Get the registered apidoc paths of the modules.
Details
at line 38
__construct()
Create a new instance.
at line 51
register(string $module, array $assets)
Register module assets in one step.
at line 77
registerViewMixin(string $module, string $view)
Registers a new view mixin of a module for a view.
at line 87
addMixin($module, $view)
deprecated
deprecated
No description
at line 98
array
getViewMixins(string $view)
Returns all mixins for a view that were registered by modules.
at line 106
getMixins($view)
deprecated
deprecated
No description
at line 118
registerControllerMixin(string $module, string $controller, callable $mixin)
Registers a new controller mixin of a module.
at line 129
array
getControllerMixins(string $controller)
Returns all mixins for a controller that were registered by modules.
at line 141
array
callControllerMixins(string $controller, array $args)
Call all controller mixins registered for a certain controller.
at line 159
array
getInstalledModules()
Returns information about all installed BIIGLE modules
at line 173
array
getApidocPaths()
Get the registered apidoc paths of the modules.