|
MediaWiki master
|
Manage foreign resources registered with ResourceLoader. More...
Public Member Functions | |
| __construct (private readonly string $registryFile, private readonly string $libDir, ?callable $infoPrinter=null, ?callable $errorPrinter=null, ?callable $verbosePrinter=null) | |
| generateCdx () | |
| Returns a JSON string describing the foreign resources in a CycloneDX format. | |
| getCdxFileLocation () | |
| Get the path to the CycloneDX file that describes the foreign resources. | |
| run (string $action, string $module) | |
Manage foreign resources registered with ResourceLoader.
Definition at line 29 of file ForeignResourceManager.php.
| MediaWiki\ResourceLoader\ForeignResourceManager::__construct | ( | private readonly string | $registryFile, |
| private readonly string | $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 71 of file ForeignResourceManager.php.
References MediaWiki\MainConfigNames\CacheDirectory, and MediaWiki\MediaWikiServices\getInstance().
| MediaWiki\ResourceLoader\ForeignResourceManager::generateCdx | ( | ) |
Returns a JSON string describing the foreign resources in a CycloneDX format.
Definition at line 213 of file ForeignResourceManager.php.
| MediaWiki\ResourceLoader\ForeignResourceManager::getCdxFileLocation | ( | ) |
Get the path to the CycloneDX file that describes the foreign resources.
Definition at line 224 of file ForeignResourceManager.php.
| MediaWiki\ResourceLoader\ForeignResourceManager::run | ( | string | $action, |
| string | $module ) |
| LogicException |
Definition at line 103 of file ForeignResourceManager.php.