MediaWiki
1.33.0
|
Manage foreign resources registered with ResourceLoader. More...
Public Member Functions | |
__construct ( $registryFile, $libDir, callable $infoPrinter=null, callable $errorPrinter=null, callable $verbosePrinter=null) | |
run ( $action, $module) | |
Private Member Functions | |
cacheGet ( $key) | |
cacheKey ( $src, $integrity) | |
cacheSet ( $key, $data) | |
cleanUp () | |
error ( $text) | |
fetch ( $src, $integrity) | |
handleTypeFile ( $moduleName, $destDir, array $info) | |
handleTypeMultiFile ( $moduleName, $destDir, array $info) | |
handleTypeTar ( $moduleName, $destDir, array $info) | |
output ( $text) | |
parseBasicYaml ( $input) | |
Basic YAML parser. More... | |
verbose ( $text) | |
Private Attributes | |
$action | |
$cacheDir | |
$defaultAlgo = 'sha384' | |
$errorPrinter | |
$hasErrors = false | |
$infoPrinter | |
$libDir | |
$registry | |
$registryFile | |
$tmpParentDir | |
$verbosePrinter | |
Manage foreign resources registered with ResourceLoader.
Definition at line 27 of file ForeignResourceManager.php.
ForeignResourceManager::__construct | ( | $registryFile, | |
$libDir, | |||
callable | $infoPrinter = null , |
||
callable | $errorPrinter = null , |
||
callable | $verbosePrinter = null |
||
) |
string | $registryFile | Path to YAML file |
string | $libDir | Path to a modules directory |
callable | null | $infoPrinter | Callback for printing info about the run. |
callable | null | $errorPrinter | Callback for printing errors from the run. |
callable | null | $verbosePrinter | Callback for printing extra verbose progress information from the run. |
Definition at line 48 of file ForeignResourceManager.php.
References $errorPrinter, $infoPrinter, $libDir, $registryFile, and $verbosePrinter.
|
private |
Definition at line 152 of file ForeignResourceManager.php.
Referenced by fetch().
|
private |
Definition at line 145 of file ForeignResourceManager.php.
|
private |
Definition at line 156 of file ForeignResourceManager.php.
References $data, and wfMkdirParents().
Referenced by fetch().
|
private |
Definition at line 304 of file ForeignResourceManager.php.
References $file, as, cacheKey(), and wfRecursiveRemoveDir().
Referenced by run().
|
private |
Definition at line 300 of file ForeignResourceManager.php.
References $errorPrinter.
Referenced by handleTypeTar(), and run().
|
private |
Definition at line 161 of file ForeignResourceManager.php.
References $data, $req, captcha-old\action, cacheGet(), cacheKey(), cacheSet(), MWHttpRequest\factory(), output(), and verbose().
Referenced by handleTypeFile(), handleTypeMultiFile(), and handleTypeTar().
|
private |
Definition at line 192 of file ForeignResourceManager.php.
References $data, $path, captcha-old\action, fetch(), and wfMkdirParents().
Referenced by run().
|
private |
Definition at line 208 of file ForeignResourceManager.php.
References $data, $file, $path, captcha-old\action, as, fetch(), and wfMkdirParents().
Referenced by run().
|
private |
Definition at line 227 of file ForeignResourceManager.php.
References $data, $file, captcha-old\action, as, error(), fetch(), null, verbose(), and wfMkdirParents().
Referenced by run().
|
private |
Definition at line 296 of file ForeignResourceManager.php.
References $infoPrinter.
|
private |
ForeignResourceManager::run | ( | $action, | |
$module | |||
) |
Exception |
Definition at line 76 of file ForeignResourceManager.php.
References $action, $modules, $registry, captcha-old\action, as, cleanUp(), error(), handleTypeFile(), handleTypeMultiFile(), handleTypeTar(), output(), parseBasicYaml(), verbose(), wfMkdirParents(), and wfRecursiveRemoveDir().
|
private |
Definition at line 292 of file ForeignResourceManager.php.
References $verbosePrinter.
Referenced by fetch(), handleTypeTar(), and run().
|
private |
Definition at line 37 of file ForeignResourceManager.php.
Referenced by run().
|
private |
Definition at line 33 of file ForeignResourceManager.php.
|
private |
Definition at line 28 of file ForeignResourceManager.php.
|
private |
Definition at line 35 of file ForeignResourceManager.php.
Referenced by __construct(), and error().
|
private |
Definition at line 29 of file ForeignResourceManager.php.
|
private |
Definition at line 34 of file ForeignResourceManager.php.
Referenced by __construct(), and output().
|
private |
Definition at line 31 of file ForeignResourceManager.php.
Referenced by __construct().
|
private |
Definition at line 38 of file ForeignResourceManager.php.
Referenced by run().
|
private |
Definition at line 30 of file ForeignResourceManager.php.
Referenced by __construct().
|
private |
Definition at line 32 of file ForeignResourceManager.php.
|
private |
Definition at line 36 of file ForeignResourceManager.php.
Referenced by __construct(), and verbose().