MediaWiki master
MediaWiki\Utils\SBOMGenerator Class Reference

Public Member Functions

 __construct (private readonly IConnectionProvider $connectionProvider, private readonly ExtensionRegistry $extensionRegistry, private readonly GlobalIdGenerator $globalIdGenerator,)
 
 generateCdxSBOM (IContextSource $context)
 Generate a Software Bill of Materials (SBOM) for MediaWiki and all related software, libraries and extensions.
 

Detailed Description

Since
1.46

Definition at line 17 of file SBOMGenerator.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Utils\SBOMGenerator::__construct ( private readonly IConnectionProvider $connectionProvider,
private readonly ExtensionRegistry $extensionRegistry,
private readonly GlobalIdGenerator $globalIdGenerator )

Definition at line 19 of file SBOMGenerator.php.

Member Function Documentation

◆ generateCdxSBOM()

MediaWiki\Utils\SBOMGenerator::generateCdxSBOM ( IContextSource $context)

Generate a Software Bill of Materials (SBOM) for MediaWiki and all related software, libraries and extensions.

Stability: unstable
See also
https://cyclonedx.org/docs/1.6/json/
Returns
array SBOM data in the CycloneDX 1.6 format

Definition at line 33 of file SBOMGenerator.php.


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