Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / libs / composer / ComposerLock.php
index 9c7bf2f..e93127c 100644 (file)
@@ -25,12 +25,15 @@ class ComposerLock {
         * @return array
         */
        public function getInstalledDependencies() {
-               $deps = array();
+               $deps = [];
                foreach ( $this->contents['packages'] as $installed ) {
-                       $deps[$installed['name']] = array(
+                       $deps[$installed['name']] = [
                                'version' => ComposerJson::normalizeVersion( $installed['version'] ),
                                'type' => $installed['type'],
-                       );
+                               'licenses' => isset( $installed['license'] ) ? $installed['license'] : [],
+                               'authors' => isset( $installed['authors'] ) ? $installed['authors'] : [],
+                               'description' => isset( $installed['description'] ) ? $installed['description']: '',
+                       ];
                }
 
                return $deps;