ExtensionUpdaterServiceLocator
in package
Tags
Table of Contents
Properties
- $updaters : array<string, callable>
Methods
- addUpdaterType() : void
- getAllUpdaters() : array<string|int, mixed>
- Get all created updaters for all updater types (plugins, themes, ...).
- getUpdater() : ExtensionUpdater|null
- Get created updaters for one updater class.
- init() : void
- All Yii components need an init() method.
Properties
$updaters
protected
array<string, callable>
$updaters
= []
Methods
addUpdaterType()
public
addUpdaterType(string $name, callable $creator) : void
Parameters
- $name : string
-
Updater class name, like 'PluginUpdater', or 'ExtensionUpdater'.
- $creator : callable
-
Callable that returns an ExtensionUpdater array.
getAllUpdaters()
Get all created updaters for all updater types (plugins, themes, ...).
public
getAllUpdaters() : array<string|int, mixed>
Return values
array<string|int, mixed> —[ExtensionUpdater[] $updaters, string[] $errors]
getUpdater()
Get created updaters for one updater class.
public
getUpdater(string $name) : ExtensionUpdater|null
Parameters
- $name : string
Return values
ExtensionUpdater|nullinit()
All Yii components need an init() method.
public
init() : void