[MediaWiki-commits] [Gerrit] mediawiki...MultiLanguageManager[master]: Use MediaWiki PSR-4 autoloader

2017-12-31 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/401176 )

Change subject: Use MediaWiki PSR-4 autoloader
..


Use MediaWiki PSR-4 autoloader

Move from composer autoload to MediaWiki autoload will fix tests,
because the no-composer tests are running on this extension

Change-Id: I7baa533da64fcb7d91e362a1c57c0e31365a899b
---
M composer.json
M extension.json
2 files changed, 7 insertions(+), 7 deletions(-)

Approvals:
  Florianschmidtwelzow: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/composer.json b/composer.json
index 4fefbef..6197711 100644
--- a/composer.json
+++ b/composer.json
@@ -5,12 +5,6 @@
"require": {
"composer/installers": "~1.0"
},
-   "autoload": {
-   "psr-4": {
-   "MultiLanguageManager\\Tests\\": "tests/phpunit",
-   "MultiLanguageManager\\": "src"
-   }
-   },
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
diff --git a/extension.json b/extension.json
index e290295..6b8510f 100644
--- a/extension.json
+++ b/extension.json
@@ -10,6 +10,9 @@
"descriptionmsg": "mlm-desc",
"license-name": "GPL-2.0",
"type": "other",
+   "requires": {
+   "MediaWiki": ">= 1.31.0"
+   },
"MessagesDirs": {
"MultiLanguageManager": [
"i18n"
@@ -101,6 +104,9 @@
"value": "MultiLanguageManager"
}
},
-   "load_composer_autoloader" : true,
+   "AutoloadNamespaces": {
+   "MultiLanguageManager\\Tests\\": "tests/phpunit/",
+   "MultiLanguageManager\\": "src/"
+   },
"manifest_version": 2
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/401176
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7baa533da64fcb7d91e362a1c57c0e31365a899b
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MultiLanguageManager
Gerrit-Branch: master
Gerrit-Owner: Umherirrender 
Gerrit-Reviewer: Florianschmidtwelzow 
Gerrit-Reviewer: Legoktm 
Gerrit-Reviewer: Umherirrender 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...MultiLanguageManager[master]: Use MediaWiki PSR-4 autoloader

2017-12-31 Thread Umherirrender (Code Review)
Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/401176 )

Change subject: Use MediaWiki PSR-4 autoloader
..

Use MediaWiki PSR-4 autoloader

Move from composer autoload to MediaWiki autoload will fix tests,
because the no-composer tests are running on this extension

Change-Id: I7baa533da64fcb7d91e362a1c57c0e31365a899b
---
M composer.json
M extension.json
2 files changed, 7 insertions(+), 7 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MultiLanguageManager 
refs/changes/76/401176/1

diff --git a/composer.json b/composer.json
index 4fefbef..6197711 100644
--- a/composer.json
+++ b/composer.json
@@ -5,12 +5,6 @@
"require": {
"composer/installers": "~1.0"
},
-   "autoload": {
-   "psr-4": {
-   "MultiLanguageManager\\Tests\\": "tests/phpunit",
-   "MultiLanguageManager\\": "src"
-   }
-   },
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
diff --git a/extension.json b/extension.json
index e290295..8714595 100644
--- a/extension.json
+++ b/extension.json
@@ -10,6 +10,9 @@
"descriptionmsg": "mlm-desc",
"license-name": "GPL-2.0",
"type": "other",
+   "requires": {
+   "MediaWiki": ">= 1.31.0"
+   },
"MessagesDirs": {
"MultiLanguageManager": [
"i18n"
@@ -101,6 +104,9 @@
"value": "MultiLanguageManager"
}
},
-   "load_composer_autoloader" : true,
+   "AutoloadNamespaces": {
+   "MultiLanguageManager\\Tests\\": "tests/phpunit",
+   "MultiLanguageManager\\": "src"
+   },
"manifest_version": 2
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/401176
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7baa533da64fcb7d91e362a1c57c0e31365a899b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MultiLanguageManager
Gerrit-Branch: master
Gerrit-Owner: Umherirrender 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits