MediaWiki REL1_39
ForeignResourceManager Class Reference

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)
 

Detailed Description

Manage foreign resources registered with ResourceLoader.

Since
1.32

Definition at line 31 of file ForeignResourceManager.php.

Constructor & Destructor Documentation

◆ __construct()

ForeignResourceManager::__construct ( $registryFile,
$libDir,
callable $infoPrinter = null,
callable $errorPrinter = null,
callable $verbosePrinter = null )
Parameters
string$registryFilePath to YAML file
string$libDirPath to a modules directory
callable | null$infoPrinterCallback for printing info about the run.
callable | null$errorPrinterCallback for printing errors from the run.
callable | null$verbosePrinterCallback for printing extra verbose progress information from the run.

Definition at line 81 of file ForeignResourceManager.php.

Member Function Documentation

◆ run()

ForeignResourceManager::run ( $action,
$module )
Parameters
string$action
string$module
Returns
bool
Exceptions
Exception

Definition at line 111 of file ForeignResourceManager.php.

References $modules, verbose, wfMkdirParents(), and wfRecursiveRemoveDir().


The documentation for this class was generated from the following file: