resources: Document why mw.user has two seemingly unused deps
authorFomafix <fomafix@googlemail.com>
Fri, 7 Dec 2018 09:55:03 +0000 (10:55 +0100)
committerKrinkle <krinklemail@gmail.com>
Sun, 17 Feb 2019 00:37:04 +0000 (00:37 +0000)
The code in the module 'mediawiki.user' does not depend on the modules
'user.options' and 'user.tokens' so the ResourceLoader dependency is
not necessary.

Change-Id: I22b9175f7623dbdf1c08826904b76dee5d56ea40

resources/Resources.php

index 8f3e8c4..741b64f 100644 (file)
@@ -1317,6 +1317,9 @@ return [
                'dependencies' => [
                        'mediawiki.api',
                        'mediawiki.storage',
+                       // The two user.* modules are not used by mediawiki.user itself,
+                       // but kept as expliciit dependencies because they provide part
+                       // of the mw.user API that consumers of this module expect.
                        'user.options',
                        'user.tokens',
                ],