MediaWiki REL1_35
|
Reads a composer.json file and provides accessors to get its hash and the required dependencies. More...
Public Member Functions | |
__construct ( $location) | |
getRequiredDependencies () | |
Dependencies as specified by composer.json. | |
Static Public Member Functions | |
static | normalizeVersion ( $version) |
Strip a leading "v" from the version name. | |
Private Attributes | |
array[] | $contents |
Reads a composer.json file and provides accessors to get its hash and the required dependencies.
Definition at line 9 of file ComposerJson.php.
ComposerJson::__construct | ( | $location | ) |
string | $location |
Definition at line 18 of file ComposerJson.php.
ComposerJson::getRequiredDependencies | ( | ) |
Dependencies as specified by composer.json.
Definition at line 27 of file ComposerJson.php.
References normalizeVersion().
|
static |
Strip a leading "v" from the version name.
string | $version |
Definition at line 48 of file ComposerJson.php.
Referenced by ComposerInstalled\getInstalledDependencies(), ComposerLock\getInstalledDependencies(), and getRequiredDependencies().
|
private |
Definition at line 13 of file ComposerJson.php.