MediaWiki  master
ComposerLock Class Reference

Reads a composer.lock file and provides accessors to get its hash and what is installed. More...

Public Member Functions

 __construct ( $location)
 
 getInstalledDependencies ()
 Dependencies currently installed according to composer.lock. More...
 

Private Attributes

array [] $contents
 -var array{packages:array{name:string,version:string,type:string,license?:string,authors?:mixed,description?:string}} More...
 

Detailed Description

Reads a composer.lock file and provides accessors to get its hash and what is installed.

Since
1.25

Definition at line 9 of file ComposerLock.php.

Constructor & Destructor Documentation

◆ __construct()

ComposerLock::__construct (   $location)
Parameters
string$location

Definition at line 19 of file ComposerLock.php.

Member Function Documentation

◆ getInstalledDependencies()

ComposerLock::getInstalledDependencies ( )

Dependencies currently installed according to composer.lock.

Returns
array[]

Definition at line 28 of file ComposerLock.php.

References ComposerJson\normalizeVersion().

Member Data Documentation

◆ $contents

array [] ComposerLock::$contents
private

-var array{packages:array{name:string,version:string,type:string,license?:string,authors?:mixed,description?:string}}

Definition at line 14 of file ComposerLock.php.


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