MediaWiki master
CheckComposerLockUpToDate Class Reference

Checks whether your composer-installed dependencies are up to date. More...

Inherits Maintenance.

Collaboration diagram for CheckComposerLockUpToDate:

Public Member Functions

 __construct ()
 canExecuteWithoutLocalSettings ()
 execute ()

Protected Member Functions

 getMwInstallPath ()

Detailed Description

Checks whether your composer-installed dependencies are up to date.

Composer creates a "composer.lock" file which specifies which versions are installed (via composer install). It has a hash, which can be compared to the value of the composer.json file to see if dependencies are up to date.

Definition at line 19 of file checkComposerLockUpToDate.php.

Constructor & Destructor Documentation

◆ __construct()

CheckComposerLockUpToDate::__construct ( )

Definition at line 20 of file checkComposerLockUpToDate.php.

Member Function Documentation

◆ canExecuteWithoutLocalSettings()

CheckComposerLockUpToDate::canExecuteWithoutLocalSettings ( )

Definition at line 26 of file checkComposerLockUpToDate.php.

References return.

◆ execute()

CheckComposerLockUpToDate::execute ( )

Definition at line 37 of file checkComposerLockUpToDate.php.

References getMwInstallPath().

◆ getMwInstallPath()

CheckComposerLockUpToDate::getMwInstallPath ( )
protected
Returns
string The value of the constant MW_INSTALL_PATH. This method mocked in phpunit tests.

Definition at line 33 of file checkComposerLockUpToDate.php.

References return.

Referenced by execute().


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