MediaWiki REL1_33
ComposerInstalled.php
Go to the documentation of this file.
1<?php
2
10
14 public function __construct( $location ) {
15 $this->contents = json_decode( file_get_contents( $location ), true );
16 }
17
23 public function getInstalledDependencies() {
24 $deps = [];
25 foreach ( $this->contents as $installed ) {
26 $deps[$installed['name']] = [
27 'version' => ComposerJson::normalizeVersion( $installed['version'] ),
28 'type' => $installed['type'],
29 'licenses' => $installed['license'] ?? [],
30 'authors' => $installed['authors'] ?? [],
31 'description' => $installed['description'] ?? '',
32 ];
33 }
34
35 ksort( $deps );
36 return $deps;
37 }
38}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Reads an installed.json file and provides accessors to get what is installed.
getInstalledDependencies()
Dependencies currently installed according to installed.json.
static normalizeVersion( $version)
Strip a leading "v" from the version name.
Some information about database access in MediaWiki By Tim January Database layout For information about the MediaWiki database such as a description of the tables and their contents
Definition database.txt:9