Manage foreign resources registered with ResourceLoader.
More...
|
| __construct ( $registryFile, $libDir, callable $infoPrinter=null, callable $errorPrinter=null, callable $verbosePrinter=null) |
|
| run ( $action, $module) |
|
Manage foreign resources registered with ResourceLoader.
- Since
- 1.32
Definition at line 27 of file ForeignResourceManager.php.
◆ __construct()
ForeignResourceManager::__construct |
( |
|
$registryFile, |
|
|
|
$libDir, |
|
|
callable |
$infoPrinter = null , |
|
|
callable |
$errorPrinter = null , |
|
|
callable |
$verbosePrinter = null |
|
) |
| |
- Parameters
-
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.
◆ cacheGet()
ForeignResourceManager::cacheGet |
( |
|
$key | ) |
|
|
private |
◆ cacheKey()
ForeignResourceManager::cacheKey |
( |
|
$src, |
|
|
|
$integrity |
|
) |
| |
|
private |
◆ cacheSet()
ForeignResourceManager::cacheSet |
( |
|
$key, |
|
|
|
$data |
|
) |
| |
|
private |
◆ cleanUp()
ForeignResourceManager::cleanUp |
( |
| ) |
|
|
private |
◆ error()
ForeignResourceManager::error |
( |
|
$text | ) |
|
|
private |
◆ fetch()
ForeignResourceManager::fetch |
( |
|
$src, |
|
|
|
$integrity |
|
) |
| |
|
private |
◆ handleTypeFile()
ForeignResourceManager::handleTypeFile |
( |
|
$moduleName, |
|
|
|
$destDir, |
|
|
array |
$info |
|
) |
| |
|
private |
◆ handleTypeMultiFile()
ForeignResourceManager::handleTypeMultiFile |
( |
|
$moduleName, |
|
|
|
$destDir, |
|
|
array |
$info |
|
) |
| |
|
private |
◆ handleTypeTar()
ForeignResourceManager::handleTypeTar |
( |
|
$moduleName, |
|
|
|
$destDir, |
|
|
array |
$info |
|
) |
| |
|
private |
◆ output()
ForeignResourceManager::output |
( |
|
$text | ) |
|
|
private |
◆ parseBasicYaml()
ForeignResourceManager::parseBasicYaml |
( |
|
$input | ) |
|
|
private |
◆ run()
ForeignResourceManager::run |
( |
|
$action, |
|
|
|
$module |
|
) |
| |
- Returns
- bool
- Exceptions
-
Definition at line 76 of file ForeignResourceManager.php.
References $action, $modules, $registry, as, cleanUp(), error(), handleTypeFile(), handleTypeMultiFile(), handleTypeTar(), output(), parseBasicYaml(), verbose, wfMkdirParents(), and wfRecursiveRemoveDir().
◆ verbose()
ForeignResourceManager::verbose |
( |
|
$text | ) |
|
|
private |
◆ $action
ForeignResourceManager::$action |
|
private |
◆ $cacheDir
ForeignResourceManager::$cacheDir |
|
private |
◆ $defaultAlgo
ForeignResourceManager::$defaultAlgo = 'sha384' |
|
private |
◆ $errorPrinter
ForeignResourceManager::$errorPrinter |
|
private |
◆ $hasErrors
ForeignResourceManager::$hasErrors = false |
|
private |
◆ $infoPrinter
ForeignResourceManager::$infoPrinter |
|
private |
◆ $libDir
ForeignResourceManager::$libDir |
|
private |
◆ $registry
ForeignResourceManager::$registry |
|
private |
◆ $registryFile
ForeignResourceManager::$registryFile |
|
private |
◆ $tmpParentDir
ForeignResourceManager::$tmpParentDir |
|
private |
◆ $verbosePrinter
ForeignResourceManager::$verbosePrinter |
|
private |
The documentation for this class was generated from the following file: