VersionFetcherServiceLocator
in package
Central Yii component to add and retrieve version fetcher strategies.
Tags
Table of Contents
Properties
- $versionFetcherCreators : array<string, callable>
- Array of callables that return a version fetcher.
Methods
- addVersionFetcherType() : void
- createVersionFetcher() : VersionFetcher
- Creates a version fetcher based on xml $updaterXml.
- init() : void
- All Yii components need an init() method.
- validateXml() : void
Properties
$versionFetcherCreators
Array of callables that return a version fetcher.
protected
array<string, callable>
$versionFetcherCreators
Methods
addVersionFetcherType()
public
addVersionFetcherType(string $name, callable $vfCreator) : void
Parameters
- $name : string
- $vfCreator : callable
Tags
createVersionFetcher()
Creates a version fetcher based on xml $updaterXml.
public
createVersionFetcher(SimpleXMLElement $updaterXml) : VersionFetcher
Parameters
- $updaterXml : SimpleXMLElement
-
tag from config.xml.
Tags
Return values
VersionFetcherinit()
All Yii components need an init() method.
public
init() : void
validateXml()
protected
validateXml(SimpleXMLElement $xml) : void
Parameters
- $xml : SimpleXMLElement